@dokamerce/web-sdk 0.22.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ import { GraphQLClient } from "graphql-request";
2
+ import { CreateCustomerTelephoneNumberMutation, CreateCustomerTelephoneNumberMutationVariables, UpdateCustomerTelephoneNumberMutation, UpdateCustomerTelephoneNumberMutationVariables, PaginatedCustomerTelephoneNumberQuery, PaginatedCustomerTelephoneNumberQueryVariables, InfiniteCustomerTelephoneNumberQuery, InfiniteCustomerTelephoneNumberQueryVariables } from "../../../graphql/src/gateway";
3
+ export interface CustomerTelephoneNumberSdk {
4
+ create: (variables: CreateCustomerTelephoneNumberMutationVariables) => Promise<CreateCustomerTelephoneNumberMutation['createCustomerTelephoneNumber']>;
5
+ update: (variables: UpdateCustomerTelephoneNumberMutationVariables) => Promise<UpdateCustomerTelephoneNumberMutation['updateCustomerTelephoneNumber']>;
6
+ paginated: (variables: PaginatedCustomerTelephoneNumberQueryVariables) => Promise<PaginatedCustomerTelephoneNumberQuery['paginatedCustomerTelephoneNumbers']>;
7
+ infinite: (variables: InfiniteCustomerTelephoneNumberQueryVariables) => Promise<InfiniteCustomerTelephoneNumberQuery['infiniteCustomerTelephoneNumbers']>;
8
+ all: (variables: InfiniteCustomerTelephoneNumberQueryVariables) => Promise<InfiniteCustomerTelephoneNumberQuery["infiniteCustomerTelephoneNumbers"]["edges"][number]["node"][]>;
9
+ }
10
+ export declare function createCustomerTelephoneNumberSdk(client: GraphQLClient): CustomerTelephoneNumberSdk;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createCustomerTelephoneNumberSdk = createCustomerTelephoneNumberSdk;
4
+ const gateway_1 = require("../../../graphql/src/gateway");
5
+ const fetch_all_infinite_util_1 = require("../utils/fetch-all-infinite.util");
6
+ function createCustomerTelephoneNumberSdk(client) {
7
+ const create = (variables) => {
8
+ return client.request(gateway_1.CreateCustomerTelephoneNumberDocument, variables).then(data => data.createCustomerTelephoneNumber);
9
+ };
10
+ const update = (variables) => {
11
+ return client.request(gateway_1.UpdateCustomerTelephoneNumberDocument, variables).then(data => data.updateCustomerTelephoneNumber);
12
+ };
13
+ const paginated = (variables) => {
14
+ return client.request(gateway_1.PaginatedCustomerTelephoneNumberDocument, variables).then(data => data.paginatedCustomerTelephoneNumbers);
15
+ };
16
+ const infinite = (variables) => {
17
+ return client.request(gateway_1.InfiniteCustomerTelephoneNumberDocument, variables).then(data => data.infiniteCustomerTelephoneNumbers);
18
+ };
19
+ const all = (variables) => {
20
+ const sdk = {
21
+ listInfinite: (v) => client.request(gateway_1.InfiniteCustomerTelephoneNumberDocument, v),
22
+ };
23
+ return (0, fetch_all_infinite_util_1.fetchAllInfinite)(sdk, variables, (res) => res.infiniteCustomerTelephoneNumbers);
24
+ };
25
+ return { create, update, paginated, infinite, all };
26
+ }
27
+ //# sourceMappingURL=customer-telephone-numbers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-telephone-numbers.js","sourceRoot":"","sources":["../../../../src/services/customer-telephone-numbers.ts"],"names":[],"mappings":";;AA6CA,4EA6CC;AAzFD,0DAasC;AACtC,8EAAqF;AA8BrF,SAAgB,gCAAgC,CAAC,MAAqB;IACpE,MAAM,MAAM,GAAG,CAAC,SAAyD,EAAE,EAAE;QAC3E,OAAO,MAAM,CAAC,OAAO,CACnB,+CAAqC,EACrC,SAAS,CACV,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IACrD,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,CAAC,SAAyD,EAAE,EAAE;QAC3E,OAAO,MAAM,CAAC,OAAO,CACnB,+CAAqC,EACrC,SAAS,CACV,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IACrD,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,CAAC,SAAyD,EAAE,EAAE;QAC9E,OAAO,MAAM,CAAC,OAAO,CACnB,kDAAwC,EACxC,SAAS,CACV,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;IACzD,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,SAAwD,EAAE,EAAE;QAC5E,OAAO,MAAM,CAAC,OAAO,CACnB,iDAAuC,EACvC,SAAS,CACV,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;IACxD,CAAC,CAAC;IAEF,MAAM,GAAG,GAAG,CAAC,SAAwD,EAAE,EAAE;QACvE,MAAM,GAAG,GAGL;YACF,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE,CAClB,MAAM,CAAC,OAAO,CACZ,iDAAuC,EACvC,CAAC,CACF;SACJ,CAAC;QAEF,OAAO,IAAA,0CAAgB,EAAC,GAAG,EAAE,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IACzF,CAAC,CAAC;IAEF,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;AACtD,CAAC"}
@@ -11,3 +11,6 @@ export * from './custom-fields';
11
11
  export * from './tags';
12
12
  export * from './cart';
13
13
  export * from './metrics';
14
+ export * from './customer-addresses';
15
+ export * from './customer-email-addresses';
16
+ export * from './customer-telephone-numbers';
@@ -27,4 +27,7 @@ __exportStar(require("./custom-fields"), exports);
27
27
  __exportStar(require("./tags"), exports);
28
28
  __exportStar(require("./cart"), exports);
29
29
  __exportStar(require("./metrics"), exports);
30
+ __exportStar(require("./customer-addresses"), exports);
31
+ __exportStar(require("./customer-email-addresses"), exports);
32
+ __exportStar(require("./customer-telephone-numbers"), exports);
30
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,4CAAyB;AACzB,2CAAwB;AACxB,0CAAuB;AACvB,+CAA4B;AAC5B,2CAAwB;AACxB,+CAA4B;AAC5B,8CAA2B;AAC3B,2CAAwB;AACxB,kDAA+B;AAC/B,yCAAsB;AACtB,yCAAsB;AACtB,4CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,4CAAyB;AACzB,2CAAwB;AACxB,0CAAuB;AACvB,+CAA4B;AAC5B,2CAAwB;AACxB,+CAA4B;AAC5B,8CAA2B;AAC3B,2CAAwB;AACxB,kDAA+B;AAC/B,yCAAsB;AACtB,yCAAsB;AACtB,4CAAyB;AACzB,uDAAoC;AACpC,6DAA0C;AAC1C,+DAA4C"}
@@ -1,4 +1,4 @@
1
- import { AttributesSdk, BrandsSdk, CartSdk, CategoriesSdk, ColorsSdk, CustomersSdk, CustomFieldsSdk, FileUploadSdk, OrdersSdk, ProductsSdk, SellersSdk, TagsSdk, MetricsSdk } from "../services";
1
+ import { AttributesSdk, BrandsSdk, CartSdk, CategoriesSdk, ColorsSdk, CustomersSdk, CustomFieldsSdk, FileUploadSdk, OrdersSdk, ProductsSdk, SellersSdk, TagsSdk, MetricsSdk, CustomerAddressesSdk, CustomerEmailAddressesSdk, CustomerTelephoneNumberSdk } from "../services";
2
2
  export type DokamerceSDK = {
3
3
  products: ProductsSdk;
4
4
  attributes: AttributesSdk;
@@ -6,6 +6,9 @@ export type DokamerceSDK = {
6
6
  categories: CategoriesSdk;
7
7
  colors: ColorsSdk;
8
8
  customers: CustomersSdk;
9
+ customerAddresses: CustomerAddressesSdk;
10
+ customerEmailAddresses: CustomerEmailAddressesSdk;
11
+ customerTelephoneNUmbers: CustomerTelephoneNumberSdk;
9
12
  metrics: MetricsSdk;
10
13
  files: FileUploadSdk;
11
14
  orders: OrdersSdk;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dokamerce/web-sdk",
3
- "version": "0.22.0",
3
+ "version": "0.25.0",
4
4
  "type": "module",
5
5
  "main": "./dist/web-sdk/src/index.js",
6
6
  "types": "./dist/web-sdk/src/index.d.ts",