From 0c7a768d93e95ab805e0ed23e7aa962c5e8ff3fb Mon Sep 17 00:00:00 2001 From: NaMax66 Date: Mon, 25 Nov 2024 16:26:27 +0100 Subject: [PATCH] chore: generate types --- client-app/core/api/graphql/schema.json | 691 +++++++++++++++++- client-app/core/api/graphql/types.ts | 96 ++- .../customer-reviews/api/graphql/types.ts | 96 ++- .../push-messages/api/graphql/types.ts | 96 ++- .../modules/quotes/api/graphql/types.ts | 100 ++- 5 files changed, 1044 insertions(+), 35 deletions(-) diff --git a/client-app/core/api/graphql/schema.json b/client-app/core/api/graphql/schema.json index ca0c663e5..e67f41a64 100644 --- a/client-app/core/api/graphql/schema.json +++ b/client-app/core/api/graphql/schema.json @@ -146,6 +146,54 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "AddQuoteItemsCommandType", + "description": null, + "isOneOf": false, + "fields": null, + "inputFields": [ + { + "name": "newQuoteItems", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "InputNewQuoteItemType", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "quoteId", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "ApproveQuoteCommandType", @@ -4194,6 +4242,279 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ContractConnection", + "description": "A connection from an object to a list of objects of type `Contract`.", + "isOneOf": null, + "fields": [ + { + "name": "edges", + "description": "A list of all of the edges returned in the connection.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ContractEdge", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "items", + "description": "A list of all of the objects returned in the connection. This is a convenience field provided for quickly exploring the API; rather than querying for \"{ edges { node } }\" when no edge data is needed, this field can be used instead. Note that when clients like Relay need to fetch the \"cursor\" field on the edge to enable efficient pagination, this shortcut cannot be used, and the full \"{ edges { node } } \" version should be used instead.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ContractType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pageInfo", + "description": "Information to aid in pagination.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "totalCount", + "description": "A count of the total number of objects in this connection, ignoring pagination. This allows a client to fetch the first five objects by passing \"5\" as the argument to `first`, then fetch the total count so it could display \"5 of 83\", for example. In cases where we employ infinite scrolling or don't have an exact count of entries, this field will return `null`.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ContractEdge", + "description": "An edge in a connection from an object to another object of type `Contract`.", + "isOneOf": null, + "fields": [ + { + "name": "cursor", + "description": "A cursor for use in pagination", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "node", + "description": "The item at the end of the edge", + "args": [], + "type": { + "kind": "OBJECT", + "name": "ContractType", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ContractType", + "description": null, + "isOneOf": null, + "fields": [ + { + "name": "code", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "dynamicProperties", + "description": "Contract dynamic property values", + "args": [ + { + "name": "cultureName", + "description": "Filter multilingual dynamic properties to return only values of specified language (\"en-US\")", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "DynamicPropertyValueType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "endDate", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "startDate", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "status", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "storeId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "vendorId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "CountryRegionType", @@ -15398,6 +15719,98 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "InputNewQuoteItemType", + "description": null, + "isOneOf": false, + "fields": null, + "inputFields": [ + { + "name": "comment", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "dynamicProperties", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "InputDynamicPropertyValueType", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "price", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Decimal", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "productId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "quantity", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "InputNewWishlistItemType", @@ -22778,6 +23191,35 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "addQuoteItems", + "description": null, + "args": [ + { + "name": "command", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AddQuoteItemsCommandType", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "QuoteType", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "addWishlistBulkItem", "description": null, @@ -25467,6 +25909,35 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "updateQuoteDynamicProperties", + "description": null, + "args": [ + { + "name": "command", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "UpdateQuoteDynamicPropertiesCommandType", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "QuoteType", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "updateRole", "description": null, @@ -34450,6 +34921,31 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "contract", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ContractType", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "countries", "description": null, @@ -35393,6 +35889,123 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "organizationContracts", + "description": null, + "args": [ + { + "name": "after", + "description": "Only return edges after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "endDate", + "description": null, + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Specifies the maximum number of edges to return, starting after the cursor specified by 'after', or the first number of edges if 'after' is not specified.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organizationId", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "startDate", + "description": null, + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "statuses", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "storeId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "vendorId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ContractConnection", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "organizationOrders", "description": null, @@ -38304,13 +38917,9 @@ "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -38416,13 +39025,9 @@ "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -38500,13 +39105,9 @@ "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -42387,6 +42988,54 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "UpdateQuoteDynamicPropertiesCommandType", + "description": null, + "isOneOf": false, + "fields": null, + "inputFields": [ + { + "name": "dynamicProperties", + "description": "Dynamic properties", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "InputDynamicPropertyValueType", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "quoteId", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "UserType", diff --git a/client-app/core/api/graphql/types.ts b/client-app/core/api/graphql/types.ts index 24cce6c10..88778f3a9 100644 --- a/client-app/core/api/graphql/types.ts +++ b/client-app/core/api/graphql/types.ts @@ -44,6 +44,11 @@ export type AddQuoteAttachmentsCommandType = { urls: Array>; }; +export type AddQuoteItemsCommandType = { + newQuoteItems: Array>; + quoteId: Scalars['String']['input']; +}; + export type ApproveQuoteCommandType = { quoteId: Scalars['String']['input']; }; @@ -606,6 +611,45 @@ export type ContactTypeSeoInfoArgs = { storeId: Scalars['String']['input']; }; +/** A connection from an object to a list of objects of type `Contract`. */ +export type ContractConnection = { + /** A list of all of the edges returned in the connection. */ + edges?: Maybe>>; + /** A list of all of the objects returned in the connection. This is a convenience field provided for quickly exploring the API; rather than querying for "{ edges { node } }" when no edge data is needed, this field can be used instead. Note that when clients like Relay need to fetch the "cursor" field on the edge to enable efficient pagination, this shortcut cannot be used, and the full "{ edges { node } } " version should be used instead. */ + items?: Maybe>>; + /** Information to aid in pagination. */ + pageInfo: PageInfo; + /** A count of the total number of objects in this connection, ignoring pagination. This allows a client to fetch the first five objects by passing "5" as the argument to `first`, then fetch the total count so it could display "5 of 83", for example. In cases where we employ infinite scrolling or don't have an exact count of entries, this field will return `null`. */ + totalCount?: Maybe; +}; + +/** An edge in a connection from an object to another object of type `Contract`. */ +export type ContractEdge = { + /** A cursor for use in pagination */ + cursor: Scalars['String']['output']; + /** The item at the end of the edge */ + node?: Maybe; +}; + +export type ContractType = { + code: Scalars['String']['output']; + description?: Maybe; + /** Contract dynamic property values */ + dynamicProperties?: Maybe>>; + endDate?: Maybe; + id: Scalars['String']['output']; + name: Scalars['String']['output']; + startDate?: Maybe; + status?: Maybe; + storeId?: Maybe; + vendorId?: Maybe; +}; + + +export type ContractTypeDynamicPropertiesArgs = { + cultureName?: InputMaybe; +}; + export type CountryRegionType = { /** Code of country region. For example 'AL'. */ id: Scalars['String']['output']; @@ -1986,6 +2030,15 @@ export type InputNewCartItemType = { quantity?: InputMaybe; }; +export type InputNewQuoteItemType = { + comment?: InputMaybe; + dynamicProperties?: InputMaybe>>; + name?: InputMaybe; + price?: InputMaybe; + productId?: InputMaybe; + quantity: Scalars['Int']['input']; +}; + export type InputNewWishlistItemType = { /** Product Id */ productId: Scalars['String']['input']; @@ -2890,6 +2943,7 @@ export type Mutations = { addOrUpdateCartShipment?: Maybe; addOrUpdateOrderPayment?: Maybe; addQuoteAttachments?: Maybe; + addQuoteItems?: Maybe; addWishlistBulkItem?: Maybe; addWishlistItem?: Maybe; addWishlistItems?: Maybe; @@ -2988,6 +3042,7 @@ export type Mutations = { updatePersonalData?: Maybe; updateQuoteAddresses?: Maybe; updateQuoteAttachments?: Maybe; + updateQuoteDynamicProperties?: Maybe; updateRole?: Maybe; updateUser?: Maybe; updateWishListItems?: Maybe; @@ -3059,6 +3114,11 @@ export type MutationsAddQuoteAttachmentsArgs = { }; +export type MutationsAddQuoteItemsArgs = { + command: AddQuoteItemsCommandType; +}; + + export type MutationsAddWishlistBulkItemArgs = { command: InputAddWishlistBulkItemType; }; @@ -3524,6 +3584,11 @@ export type MutationsUpdateQuoteAttachmentsArgs = { }; +export type MutationsUpdateQuoteDynamicPropertiesArgs = { + command: UpdateQuoteDynamicPropertiesCommandType; +}; + + export type MutationsUpdateRoleArgs = { command: InputUpdateRoleType; }; @@ -4556,6 +4621,7 @@ export type Query = { childCategories?: Maybe; contact?: Maybe; contacts?: Maybe; + contract?: Maybe; countries: Array; customerReviews?: Maybe; dynamicProperties?: Maybe; @@ -4573,6 +4639,7 @@ export type Query = { orderStatuses?: Maybe; orders?: Maybe; organization?: Maybe; + organizationContracts?: Maybe; organizationOrders?: Maybe; organizations?: Maybe; page?: Maybe; @@ -4704,6 +4771,11 @@ export type QueryContactsArgs = { }; +export type QueryContractArgs = { + id?: InputMaybe; +}; + + export type QueryCustomerReviewsArgs = { after?: InputMaybe; entityId: Scalars['String']['input']; @@ -4818,6 +4890,18 @@ export type QueryOrganizationArgs = { }; +export type QueryOrganizationContractsArgs = { + after?: InputMaybe; + endDate?: InputMaybe; + first?: InputMaybe; + organizationId: Scalars['String']['input']; + startDate?: InputMaybe; + statuses?: InputMaybe>>; + storeId?: InputMaybe; + vendorId?: InputMaybe; +}; + + export type QueryOrganizationOrdersArgs = { after?: InputMaybe; cultureName?: InputMaybe; @@ -5162,7 +5246,7 @@ export type QuoteEdge = { }; export type QuoteItemType = { - catalogId: Scalars['String']['output']; + catalogId?: Maybe; categoryId?: Maybe; comment?: Maybe; id: Scalars['String']['output']; @@ -5170,12 +5254,12 @@ export type QuoteItemType = { listPrice: MoneyType; name: Scalars['String']['output']; product?: Maybe; - productId: Scalars['String']['output']; + productId?: Maybe; proposalPrices: Array; quantity: Scalars['Int']['output']; salePrice: MoneyType; selectedTierPrice?: Maybe; - sku: Scalars['String']['output']; + sku?: Maybe; taxType?: Maybe; }; @@ -5626,6 +5710,12 @@ export type UpdateQuoteAttachmentsCommandType = { urls: Array>; }; +export type UpdateQuoteDynamicPropertiesCommandType = { + /** Dynamic properties */ + dynamicProperties: Array>; + quoteId: Scalars['String']['input']; +}; + export type UserType = { accessFailedCount: Scalars['Int']['output']; /** The associated contact info */ diff --git a/client-app/modules/customer-reviews/api/graphql/types.ts b/client-app/modules/customer-reviews/api/graphql/types.ts index f140fb246..778af59bd 100644 --- a/client-app/modules/customer-reviews/api/graphql/types.ts +++ b/client-app/modules/customer-reviews/api/graphql/types.ts @@ -44,6 +44,11 @@ export type AddQuoteAttachmentsCommandType = { urls: Array>; }; +export type AddQuoteItemsCommandType = { + newQuoteItems: Array>; + quoteId: Scalars['String']['input']; +}; + export type ApproveQuoteCommandType = { quoteId: Scalars['String']['input']; }; @@ -606,6 +611,45 @@ export type ContactTypeSeoInfoArgs = { storeId: Scalars['String']['input']; }; +/** A connection from an object to a list of objects of type `Contract`. */ +export type ContractConnection = { + /** A list of all of the edges returned in the connection. */ + edges?: Maybe>>; + /** A list of all of the objects returned in the connection. This is a convenience field provided for quickly exploring the API; rather than querying for "{ edges { node } }" when no edge data is needed, this field can be used instead. Note that when clients like Relay need to fetch the "cursor" field on the edge to enable efficient pagination, this shortcut cannot be used, and the full "{ edges { node } } " version should be used instead. */ + items?: Maybe>>; + /** Information to aid in pagination. */ + pageInfo: PageInfo; + /** A count of the total number of objects in this connection, ignoring pagination. This allows a client to fetch the first five objects by passing "5" as the argument to `first`, then fetch the total count so it could display "5 of 83", for example. In cases where we employ infinite scrolling or don't have an exact count of entries, this field will return `null`. */ + totalCount?: Maybe; +}; + +/** An edge in a connection from an object to another object of type `Contract`. */ +export type ContractEdge = { + /** A cursor for use in pagination */ + cursor: Scalars['String']['output']; + /** The item at the end of the edge */ + node?: Maybe; +}; + +export type ContractType = { + code: Scalars['String']['output']; + description?: Maybe; + /** Contract dynamic property values */ + dynamicProperties?: Maybe>>; + endDate?: Maybe; + id: Scalars['String']['output']; + name: Scalars['String']['output']; + startDate?: Maybe; + status?: Maybe; + storeId?: Maybe; + vendorId?: Maybe; +}; + + +export type ContractTypeDynamicPropertiesArgs = { + cultureName?: InputMaybe; +}; + export type CountryRegionType = { /** Code of country region. For example 'AL'. */ id: Scalars['String']['output']; @@ -1986,6 +2030,15 @@ export type InputNewCartItemType = { quantity?: InputMaybe; }; +export type InputNewQuoteItemType = { + comment?: InputMaybe; + dynamicProperties?: InputMaybe>>; + name?: InputMaybe; + price?: InputMaybe; + productId?: InputMaybe; + quantity: Scalars['Int']['input']; +}; + export type InputNewWishlistItemType = { /** Product Id */ productId: Scalars['String']['input']; @@ -2890,6 +2943,7 @@ export type Mutations = { addOrUpdateCartShipment?: Maybe; addOrUpdateOrderPayment?: Maybe; addQuoteAttachments?: Maybe; + addQuoteItems?: Maybe; addWishlistBulkItem?: Maybe; addWishlistItem?: Maybe; addWishlistItems?: Maybe; @@ -2988,6 +3042,7 @@ export type Mutations = { updatePersonalData?: Maybe; updateQuoteAddresses?: Maybe; updateQuoteAttachments?: Maybe; + updateQuoteDynamicProperties?: Maybe; updateRole?: Maybe; updateUser?: Maybe; updateWishListItems?: Maybe; @@ -3059,6 +3114,11 @@ export type MutationsAddQuoteAttachmentsArgs = { }; +export type MutationsAddQuoteItemsArgs = { + command: AddQuoteItemsCommandType; +}; + + export type MutationsAddWishlistBulkItemArgs = { command: InputAddWishlistBulkItemType; }; @@ -3524,6 +3584,11 @@ export type MutationsUpdateQuoteAttachmentsArgs = { }; +export type MutationsUpdateQuoteDynamicPropertiesArgs = { + command: UpdateQuoteDynamicPropertiesCommandType; +}; + + export type MutationsUpdateRoleArgs = { command: InputUpdateRoleType; }; @@ -4556,6 +4621,7 @@ export type Query = { childCategories?: Maybe; contact?: Maybe; contacts?: Maybe; + contract?: Maybe; countries: Array; customerReviews?: Maybe; dynamicProperties?: Maybe; @@ -4573,6 +4639,7 @@ export type Query = { orderStatuses?: Maybe; orders?: Maybe; organization?: Maybe; + organizationContracts?: Maybe; organizationOrders?: Maybe; organizations?: Maybe; page?: Maybe; @@ -4704,6 +4771,11 @@ export type QueryContactsArgs = { }; +export type QueryContractArgs = { + id?: InputMaybe; +}; + + export type QueryCustomerReviewsArgs = { after?: InputMaybe; entityId: Scalars['String']['input']; @@ -4818,6 +4890,18 @@ export type QueryOrganizationArgs = { }; +export type QueryOrganizationContractsArgs = { + after?: InputMaybe; + endDate?: InputMaybe; + first?: InputMaybe; + organizationId: Scalars['String']['input']; + startDate?: InputMaybe; + statuses?: InputMaybe>>; + storeId?: InputMaybe; + vendorId?: InputMaybe; +}; + + export type QueryOrganizationOrdersArgs = { after?: InputMaybe; cultureName?: InputMaybe; @@ -5162,7 +5246,7 @@ export type QuoteEdge = { }; export type QuoteItemType = { - catalogId: Scalars['String']['output']; + catalogId?: Maybe; categoryId?: Maybe; comment?: Maybe; id: Scalars['String']['output']; @@ -5170,12 +5254,12 @@ export type QuoteItemType = { listPrice: MoneyType; name: Scalars['String']['output']; product?: Maybe; - productId: Scalars['String']['output']; + productId?: Maybe; proposalPrices: Array; quantity: Scalars['Int']['output']; salePrice: MoneyType; selectedTierPrice?: Maybe; - sku: Scalars['String']['output']; + sku?: Maybe; taxType?: Maybe; }; @@ -5626,6 +5710,12 @@ export type UpdateQuoteAttachmentsCommandType = { urls: Array>; }; +export type UpdateQuoteDynamicPropertiesCommandType = { + /** Dynamic properties */ + dynamicProperties: Array>; + quoteId: Scalars['String']['input']; +}; + export type UserType = { accessFailedCount: Scalars['Int']['output']; /** The associated contact info */ diff --git a/client-app/modules/push-messages/api/graphql/types.ts b/client-app/modules/push-messages/api/graphql/types.ts index dc02a7b31..a9e899d20 100644 --- a/client-app/modules/push-messages/api/graphql/types.ts +++ b/client-app/modules/push-messages/api/graphql/types.ts @@ -44,6 +44,11 @@ export type AddQuoteAttachmentsCommandType = { urls: Array>; }; +export type AddQuoteItemsCommandType = { + newQuoteItems: Array>; + quoteId: Scalars['String']['input']; +}; + export type ApproveQuoteCommandType = { quoteId: Scalars['String']['input']; }; @@ -606,6 +611,45 @@ export type ContactTypeSeoInfoArgs = { storeId: Scalars['String']['input']; }; +/** A connection from an object to a list of objects of type `Contract`. */ +export type ContractConnection = { + /** A list of all of the edges returned in the connection. */ + edges?: Maybe>>; + /** A list of all of the objects returned in the connection. This is a convenience field provided for quickly exploring the API; rather than querying for "{ edges { node } }" when no edge data is needed, this field can be used instead. Note that when clients like Relay need to fetch the "cursor" field on the edge to enable efficient pagination, this shortcut cannot be used, and the full "{ edges { node } } " version should be used instead. */ + items?: Maybe>>; + /** Information to aid in pagination. */ + pageInfo: PageInfo; + /** A count of the total number of objects in this connection, ignoring pagination. This allows a client to fetch the first five objects by passing "5" as the argument to `first`, then fetch the total count so it could display "5 of 83", for example. In cases where we employ infinite scrolling or don't have an exact count of entries, this field will return `null`. */ + totalCount?: Maybe; +}; + +/** An edge in a connection from an object to another object of type `Contract`. */ +export type ContractEdge = { + /** A cursor for use in pagination */ + cursor: Scalars['String']['output']; + /** The item at the end of the edge */ + node?: Maybe; +}; + +export type ContractType = { + code: Scalars['String']['output']; + description?: Maybe; + /** Contract dynamic property values */ + dynamicProperties?: Maybe>>; + endDate?: Maybe; + id: Scalars['String']['output']; + name: Scalars['String']['output']; + startDate?: Maybe; + status?: Maybe; + storeId?: Maybe; + vendorId?: Maybe; +}; + + +export type ContractTypeDynamicPropertiesArgs = { + cultureName?: InputMaybe; +}; + export type CountryRegionType = { /** Code of country region. For example 'AL'. */ id: Scalars['String']['output']; @@ -1986,6 +2030,15 @@ export type InputNewCartItemType = { quantity?: InputMaybe; }; +export type InputNewQuoteItemType = { + comment?: InputMaybe; + dynamicProperties?: InputMaybe>>; + name?: InputMaybe; + price?: InputMaybe; + productId?: InputMaybe; + quantity: Scalars['Int']['input']; +}; + export type InputNewWishlistItemType = { /** Product Id */ productId: Scalars['String']['input']; @@ -2890,6 +2943,7 @@ export type Mutations = { addOrUpdateCartShipment?: Maybe; addOrUpdateOrderPayment?: Maybe; addQuoteAttachments?: Maybe; + addQuoteItems?: Maybe; addWishlistBulkItem?: Maybe; addWishlistItem?: Maybe; addWishlistItems?: Maybe; @@ -2988,6 +3042,7 @@ export type Mutations = { updatePersonalData?: Maybe; updateQuoteAddresses?: Maybe; updateQuoteAttachments?: Maybe; + updateQuoteDynamicProperties?: Maybe; updateRole?: Maybe; updateUser?: Maybe; updateWishListItems?: Maybe; @@ -3059,6 +3114,11 @@ export type MutationsAddQuoteAttachmentsArgs = { }; +export type MutationsAddQuoteItemsArgs = { + command: AddQuoteItemsCommandType; +}; + + export type MutationsAddWishlistBulkItemArgs = { command: InputAddWishlistBulkItemType; }; @@ -3524,6 +3584,11 @@ export type MutationsUpdateQuoteAttachmentsArgs = { }; +export type MutationsUpdateQuoteDynamicPropertiesArgs = { + command: UpdateQuoteDynamicPropertiesCommandType; +}; + + export type MutationsUpdateRoleArgs = { command: InputUpdateRoleType; }; @@ -4556,6 +4621,7 @@ export type Query = { childCategories?: Maybe; contact?: Maybe; contacts?: Maybe; + contract?: Maybe; countries: Array; customerReviews?: Maybe; dynamicProperties?: Maybe; @@ -4573,6 +4639,7 @@ export type Query = { orderStatuses?: Maybe; orders?: Maybe; organization?: Maybe; + organizationContracts?: Maybe; organizationOrders?: Maybe; organizations?: Maybe; page?: Maybe; @@ -4704,6 +4771,11 @@ export type QueryContactsArgs = { }; +export type QueryContractArgs = { + id?: InputMaybe; +}; + + export type QueryCustomerReviewsArgs = { after?: InputMaybe; entityId: Scalars['String']['input']; @@ -4818,6 +4890,18 @@ export type QueryOrganizationArgs = { }; +export type QueryOrganizationContractsArgs = { + after?: InputMaybe; + endDate?: InputMaybe; + first?: InputMaybe; + organizationId: Scalars['String']['input']; + startDate?: InputMaybe; + statuses?: InputMaybe>>; + storeId?: InputMaybe; + vendorId?: InputMaybe; +}; + + export type QueryOrganizationOrdersArgs = { after?: InputMaybe; cultureName?: InputMaybe; @@ -5162,7 +5246,7 @@ export type QuoteEdge = { }; export type QuoteItemType = { - catalogId: Scalars['String']['output']; + catalogId?: Maybe; categoryId?: Maybe; comment?: Maybe; id: Scalars['String']['output']; @@ -5170,12 +5254,12 @@ export type QuoteItemType = { listPrice: MoneyType; name: Scalars['String']['output']; product?: Maybe; - productId: Scalars['String']['output']; + productId?: Maybe; proposalPrices: Array; quantity: Scalars['Int']['output']; salePrice: MoneyType; selectedTierPrice?: Maybe; - sku: Scalars['String']['output']; + sku?: Maybe; taxType?: Maybe; }; @@ -5626,6 +5710,12 @@ export type UpdateQuoteAttachmentsCommandType = { urls: Array>; }; +export type UpdateQuoteDynamicPropertiesCommandType = { + /** Dynamic properties */ + dynamicProperties: Array>; + quoteId: Scalars['String']['input']; +}; + export type UserType = { accessFailedCount: Scalars['Int']['output']; /** The associated contact info */ diff --git a/client-app/modules/quotes/api/graphql/types.ts b/client-app/modules/quotes/api/graphql/types.ts index 067523511..9c1d74f81 100644 --- a/client-app/modules/quotes/api/graphql/types.ts +++ b/client-app/modules/quotes/api/graphql/types.ts @@ -44,6 +44,11 @@ export type AddQuoteAttachmentsCommandType = { urls: Array>; }; +export type AddQuoteItemsCommandType = { + newQuoteItems: Array>; + quoteId: Scalars['String']['input']; +}; + export type ApproveQuoteCommandType = { quoteId: Scalars['String']['input']; }; @@ -606,6 +611,45 @@ export type ContactTypeSeoInfoArgs = { storeId: Scalars['String']['input']; }; +/** A connection from an object to a list of objects of type `Contract`. */ +export type ContractConnection = { + /** A list of all of the edges returned in the connection. */ + edges?: Maybe>>; + /** A list of all of the objects returned in the connection. This is a convenience field provided for quickly exploring the API; rather than querying for "{ edges { node } }" when no edge data is needed, this field can be used instead. Note that when clients like Relay need to fetch the "cursor" field on the edge to enable efficient pagination, this shortcut cannot be used, and the full "{ edges { node } } " version should be used instead. */ + items?: Maybe>>; + /** Information to aid in pagination. */ + pageInfo: PageInfo; + /** A count of the total number of objects in this connection, ignoring pagination. This allows a client to fetch the first five objects by passing "5" as the argument to `first`, then fetch the total count so it could display "5 of 83", for example. In cases where we employ infinite scrolling or don't have an exact count of entries, this field will return `null`. */ + totalCount?: Maybe; +}; + +/** An edge in a connection from an object to another object of type `Contract`. */ +export type ContractEdge = { + /** A cursor for use in pagination */ + cursor: Scalars['String']['output']; + /** The item at the end of the edge */ + node?: Maybe; +}; + +export type ContractType = { + code: Scalars['String']['output']; + description?: Maybe; + /** Contract dynamic property values */ + dynamicProperties?: Maybe>>; + endDate?: Maybe; + id: Scalars['String']['output']; + name: Scalars['String']['output']; + startDate?: Maybe; + status?: Maybe; + storeId?: Maybe; + vendorId?: Maybe; +}; + + +export type ContractTypeDynamicPropertiesArgs = { + cultureName?: InputMaybe; +}; + export type CountryRegionType = { /** Code of country region. For example 'AL'. */ id: Scalars['String']['output']; @@ -1986,6 +2030,15 @@ export type InputNewCartItemType = { quantity?: InputMaybe; }; +export type InputNewQuoteItemType = { + comment?: InputMaybe; + dynamicProperties?: InputMaybe>>; + name?: InputMaybe; + price?: InputMaybe; + productId?: InputMaybe; + quantity: Scalars['Int']['input']; +}; + export type InputNewWishlistItemType = { /** Product Id */ productId: Scalars['String']['input']; @@ -2890,6 +2943,7 @@ export type Mutations = { addOrUpdateCartShipment?: Maybe; addOrUpdateOrderPayment?: Maybe; addQuoteAttachments?: Maybe; + addQuoteItems?: Maybe; addWishlistBulkItem?: Maybe; addWishlistItem?: Maybe; addWishlistItems?: Maybe; @@ -2988,6 +3042,7 @@ export type Mutations = { updatePersonalData?: Maybe; updateQuoteAddresses?: Maybe; updateQuoteAttachments?: Maybe; + updateQuoteDynamicProperties?: Maybe; updateRole?: Maybe; updateUser?: Maybe; updateWishListItems?: Maybe; @@ -3059,6 +3114,11 @@ export type MutationsAddQuoteAttachmentsArgs = { }; +export type MutationsAddQuoteItemsArgs = { + command: AddQuoteItemsCommandType; +}; + + export type MutationsAddWishlistBulkItemArgs = { command: InputAddWishlistBulkItemType; }; @@ -3524,6 +3584,11 @@ export type MutationsUpdateQuoteAttachmentsArgs = { }; +export type MutationsUpdateQuoteDynamicPropertiesArgs = { + command: UpdateQuoteDynamicPropertiesCommandType; +}; + + export type MutationsUpdateRoleArgs = { command: InputUpdateRoleType; }; @@ -4556,6 +4621,7 @@ export type Query = { childCategories?: Maybe; contact?: Maybe; contacts?: Maybe; + contract?: Maybe; countries: Array; customerReviews?: Maybe; dynamicProperties?: Maybe; @@ -4573,6 +4639,7 @@ export type Query = { orderStatuses?: Maybe; orders?: Maybe; organization?: Maybe; + organizationContracts?: Maybe; organizationOrders?: Maybe; organizations?: Maybe; page?: Maybe; @@ -4704,6 +4771,11 @@ export type QueryContactsArgs = { }; +export type QueryContractArgs = { + id?: InputMaybe; +}; + + export type QueryCustomerReviewsArgs = { after?: InputMaybe; entityId: Scalars['String']['input']; @@ -4818,6 +4890,18 @@ export type QueryOrganizationArgs = { }; +export type QueryOrganizationContractsArgs = { + after?: InputMaybe; + endDate?: InputMaybe; + first?: InputMaybe; + organizationId: Scalars['String']['input']; + startDate?: InputMaybe; + statuses?: InputMaybe>>; + storeId?: InputMaybe; + vendorId?: InputMaybe; +}; + + export type QueryOrganizationOrdersArgs = { after?: InputMaybe; cultureName?: InputMaybe; @@ -5162,7 +5246,7 @@ export type QuoteEdge = { }; export type QuoteItemType = { - catalogId: Scalars['String']['output']; + catalogId?: Maybe; categoryId?: Maybe; comment?: Maybe; id: Scalars['String']['output']; @@ -5170,12 +5254,12 @@ export type QuoteItemType = { listPrice: MoneyType; name: Scalars['String']['output']; product?: Maybe; - productId: Scalars['String']['output']; + productId?: Maybe; proposalPrices: Array; quantity: Scalars['Int']['output']; salePrice: MoneyType; selectedTierPrice?: Maybe; - sku: Scalars['String']['output']; + sku?: Maybe; taxType?: Maybe; }; @@ -5626,6 +5710,12 @@ export type UpdateQuoteAttachmentsCommandType = { urls: Array>; }; +export type UpdateQuoteDynamicPropertiesCommandType = { + /** Dynamic properties */ + dynamicProperties: Array>; + quoteId: Scalars['String']['input']; +}; + export type UserType = { accessFailedCount: Scalars['Int']['output']; /** The associated contact info */ @@ -5940,7 +6030,7 @@ export type QuoteAddressFieldsFragment = { firstName: string, lastName: string, export type QuoteAttachmentFragment = { name: string, url: string, contentType?: string, size: number }; -export type QuoteLineItemFieldsFragment = { id: string, sku: string, productId: string, name: string, imageUrl?: string, listPrice: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, selectedTierPrice?: { quantity: number, price: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } } }, product?: { id: string, slug?: string, brandName?: string, properties: Array<{ name: string, value?: string | number | boolean | null, propertyType: PropertyType, hidden: boolean, propertyValueType: PropertyValueTypes, label: string, displayOrder?: number }>, availabilityData: { availableQuantity: number, isInStock: boolean } } }; +export type QuoteLineItemFieldsFragment = { id: string, sku?: string, productId?: string, name: string, imageUrl?: string, listPrice: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, selectedTierPrice?: { quantity: number, price: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } } }, product?: { id: string, slug?: string, brandName?: string, properties: Array<{ name: string, value?: string | number | boolean | null, propertyType: PropertyType, hidden: boolean, propertyValueType: PropertyValueTypes, label: string, displayOrder?: number }>, availabilityData: { availableQuantity: number, isInStock: boolean } } }; export type ApproveQuoteRequestMutationVariables = Exact<{ command: ApproveQuoteCommandType; @@ -6021,7 +6111,7 @@ export type GetQuoteQueryVariables = Exact<{ }>; -export type GetQuoteQuery = { quote?: { id: string, number: string, createdDate: any, cancelledDate?: any, cancelReason?: string, comment?: string, isCancelled: boolean, status?: string, attachments: Array<{ name: string, url: string, contentType?: string, size: number }>, items: Array<{ id: string, sku: string, productId: string, name: string, imageUrl?: string, listPrice: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, selectedTierPrice?: { quantity: number, price: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } } }, product?: { id: string, slug?: string, brandName?: string, properties: Array<{ name: string, value?: string | number | boolean | null, propertyType: PropertyType, hidden: boolean, propertyValueType: PropertyValueTypes, label: string, displayOrder?: number }>, availabilityData: { availableQuantity: number, isInStock: boolean } } }>, addresses: Array<{ firstName: string, lastName: string, line1?: string, line2?: string, city: string, countryCode?: string, countryName: string, regionId?: string, regionName?: string, postalCode?: string, phone?: string, email?: string, addressType?: number, key?: string }>, totals: { grandTotalInclTax: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, subTotalExlTax: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, shippingTotal: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, taxTotal: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, adjustmentQuoteExlTax: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, grandTotalExlTax: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, discountTotal: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } } } } }; +export type GetQuoteQuery = { quote?: { id: string, number: string, createdDate: any, cancelledDate?: any, cancelReason?: string, comment?: string, isCancelled: boolean, status?: string, attachments: Array<{ name: string, url: string, contentType?: string, size: number }>, items: Array<{ id: string, sku?: string, productId?: string, name: string, imageUrl?: string, listPrice: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, selectedTierPrice?: { quantity: number, price: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } } }, product?: { id: string, slug?: string, brandName?: string, properties: Array<{ name: string, value?: string | number | boolean | null, propertyType: PropertyType, hidden: boolean, propertyValueType: PropertyValueTypes, label: string, displayOrder?: number }>, availabilityData: { availableQuantity: number, isInStock: boolean } } }>, addresses: Array<{ firstName: string, lastName: string, line1?: string, line2?: string, city: string, countryCode?: string, countryName: string, regionId?: string, regionName?: string, postalCode?: string, phone?: string, email?: string, addressType?: number, key?: string }>, totals: { grandTotalInclTax: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, subTotalExlTax: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, shippingTotal: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, taxTotal: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, adjustmentQuoteExlTax: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, grandTotalExlTax: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } }, discountTotal: { amount: number, formattedAmount: string, formattedAmountWithoutCurrency: string, currency: { code: string, symbol: string } } } } }; export type GetQuotesQueryVariables = Exact<{ storeId?: InputMaybe;