@dokamerce/web-sdk 0.21.2 → 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.
Files changed (28) hide show
  1. package/dist/graphql/__generated__/gateway.d.ts +1590 -661
  2. package/dist/graphql/__generated__/gateway.js +424 -63
  3. package/dist/graphql/__generated__/gateway.js.map +1 -1
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/dist/web-sdk/src/functions/init-sdk-client.function.d.ts +1 -2
  6. package/dist/web-sdk/src/functions/init-sdk.function.d.ts +1 -2
  7. package/dist/web-sdk/src/index.d.ts +5 -13
  8. package/dist/web-sdk/src/index.js +18 -36
  9. package/dist/web-sdk/src/index.js.map +1 -1
  10. package/dist/web-sdk/src/main.d.ts +10 -0
  11. package/dist/web-sdk/src/main.js +43 -0
  12. package/dist/web-sdk/src/main.js.map +1 -0
  13. package/dist/web-sdk/src/services/attributes.d.ts +1 -1
  14. package/dist/web-sdk/src/services/customer-addresses.d.ts +10 -0
  15. package/dist/web-sdk/src/services/customer-addresses.js +27 -0
  16. package/dist/web-sdk/src/services/customer-addresses.js.map +1 -0
  17. package/dist/web-sdk/src/services/customer-email-addresses.d.ts +10 -0
  18. package/dist/web-sdk/src/services/customer-email-addresses.js +27 -0
  19. package/dist/web-sdk/src/services/customer-email-addresses.js.map +1 -0
  20. package/dist/web-sdk/src/services/customer-telephone-numbers.d.ts +10 -0
  21. package/dist/web-sdk/src/services/customer-telephone-numbers.js +27 -0
  22. package/dist/web-sdk/src/services/customer-telephone-numbers.js.map +1 -0
  23. package/dist/web-sdk/src/services/index.d.ts +4 -0
  24. package/dist/web-sdk/src/services/index.js +4 -0
  25. package/dist/web-sdk/src/services/index.js.map +1 -1
  26. package/dist/web-sdk/src/services/products.d.ts +1 -1
  27. package/dist/web-sdk/src/typings/sdk.typing.d.ts +6 -5
  28. package/package.json +2 -2
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createInstance = void 0;
4
+ const init_sdk_function_1 = require("./functions/init-sdk.function");
5
+ const safe_call_function_1 = require("./functions/safe-call.function");
6
+ const products_1 = require("./services/products");
7
+ const contexts_1 = require("./contexts");
8
+ const services_1 = require("./services");
9
+ const metrics_1 = require("./services/metrics");
10
+ const createInstance = (options) => {
11
+ (0, safe_call_function_1.safeCall)({
12
+ fn: () => (0, init_sdk_function_1.initSdk)({
13
+ realm: options.realm,
14
+ key: options.key,
15
+ mode: options.mode ?? "production"
16
+ }),
17
+ onError: options.onError,
18
+ });
19
+ const client = (0, contexts_1.getSdkClient)();
20
+ if (!client) {
21
+ throw new Error("Failed to initialize client");
22
+ }
23
+ return {
24
+ products: (0, products_1.createProductsSdk)(client),
25
+ sellers: (0, services_1.createSellersSdk)(client),
26
+ colors: (0, services_1.createColorsSdk)(client),
27
+ files: (0, services_1.createFileUploadSdk)(client),
28
+ categories: (0, services_1.createCategoriesSdk)(client),
29
+ brands: (0, services_1.createBrandsSdk)(client),
30
+ attributes: (0, services_1.createAttributesSdk)(client),
31
+ customers: (0, services_1.createCustomersSdk)(client),
32
+ orders: (0, services_1.createOrdersSdk)(client),
33
+ metrics: (0, metrics_1.createMetricsSdk)(client),
34
+ customFields: (0, services_1.createCustomFieldsSdk)(client),
35
+ tags: (0, services_1.createTagsSdk)(client),
36
+ cart: (0, services_1.createCartSdk)(client),
37
+ customerAddresses: (0, services_1.createCustomerAddressesSdk)(client),
38
+ customerEmailAddresses: (0, services_1.createCustomerEmailAddressesSdk)(client),
39
+ customerTelephoneNUmbers: (0, services_1.createCustomerTelephoneNumberSdk)(client)
40
+ };
41
+ };
42
+ exports.createInstance = createInstance;
43
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/main.ts"],"names":[],"mappings":";;;AAcA,qEAAwD;AACxD,uEAAoE;AAEpE,kDAAwD;AACxD,yCAA0C;AAC1C,yCAAwU;AACxU,gDAAsD;AAuBtD,MAAM,cAAc,GAAG,CAAC,OAAmB,EAAgB,EAAE;IAE3D,IAAA,6BAAQ,EAAC;QACP,EAAE,EAAE,GAAG,EAAE,CACP,IAAA,2BAAO,EAAC;YACN,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,YAAY;SACnC,CAAC;QACJ,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAC,CAAC;IAGH,MAAM,MAAM,GAAG,IAAA,uBAAY,GAAE,CAAC;IAE9B,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IAGD,OAAO;QACL,QAAQ,EAAE,IAAA,4BAAiB,EAAC,MAAM,CAAC;QACnC,OAAO,EAAE,IAAA,2BAAgB,EAAC,MAAM,CAAC;QACjC,MAAM,EAAE,IAAA,0BAAe,EAAC,MAAM,CAAC;QAC/B,KAAK,EAAE,IAAA,8BAAmB,EAAC,MAAM,CAAC;QAClC,UAAU,EAAE,IAAA,8BAAmB,EAAC,MAAM,CAAC;QACvC,MAAM,EAAE,IAAA,0BAAe,EAAC,MAAM,CAAC;QAC/B,UAAU,EAAE,IAAA,8BAAmB,EAAC,MAAM,CAAC;QACvC,SAAS,EAAE,IAAA,6BAAkB,EAAC,MAAM,CAAC;QACrC,MAAM,EAAE,IAAA,0BAAe,EAAC,MAAM,CAAC;QAC/B,OAAO,EAAE,IAAA,0BAAgB,EAAC,MAAM,CAAC;QACjC,YAAY,EAAE,IAAA,gCAAqB,EAAC,MAAM,CAAC;QAC3C,IAAI,EAAE,IAAA,wBAAa,EAAC,MAAM,CAAC;QAC3B,IAAI,EAAE,IAAA,wBAAa,EAAC,MAAM,CAAC;QAC3B,iBAAiB,EAAE,IAAA,qCAA0B,EAAC,MAAM,CAAC;QACrD,sBAAsB,EAAE,IAAA,0CAA+B,EAAC,MAAM,CAAC;QAC/D,wBAAwB,EAAE,IAAA,2CAAgC,EAAC,MAAM,CAAC;KACnE,CAAC;AACJ,CAAC,CAAA;AAEQ,wCAAc"}
@@ -1,5 +1,5 @@
1
1
  import { GraphQLClient } from "graphql-request";
2
- import { PaginatedAttributesQuery, PaginatedAttributesQueryVariables, InfiniteAttributesQuery, InfiniteAttributesQueryVariables } from "../../../graphql/src/gateway";
2
+ import { type PaginatedAttributesQuery, type PaginatedAttributesQueryVariables, type InfiniteAttributesQuery, type InfiniteAttributesQueryVariables } from "../../../graphql/src/gateway";
3
3
  export interface AttributesSdk {
4
4
  paginated: (variables?: PaginatedAttributesQueryVariables) => Promise<PaginatedAttributesQuery["paginatedAttributes"]>;
5
5
  infinite: (variables: InfiniteAttributesQueryVariables) => Promise<InfiniteAttributesQuery["infiniteAttributes"]>;
@@ -0,0 +1,10 @@
1
+ import { GraphQLClient } from "graphql-request";
2
+ import { CreateCustomerAddressMutation, CreateCustomerAddressMutationVariables, UpdateCustomerAddressMutation, UpdateCustomerAddressMutationVariables, PaginatedCustomerAddressQuery, PaginatedCustomerAddressQueryVariables, InfiniteCustomerAddressQuery, InfiniteCustomerAddressQueryVariables } from "../../../graphql/src/gateway";
3
+ export interface CustomerAddressesSdk {
4
+ create: (variables: CreateCustomerAddressMutationVariables) => Promise<CreateCustomerAddressMutation['createCustomerAddress']>;
5
+ update: (variables: UpdateCustomerAddressMutationVariables) => Promise<UpdateCustomerAddressMutation['updateCustomerAddress']>;
6
+ paginated: (variables: PaginatedCustomerAddressQueryVariables) => Promise<PaginatedCustomerAddressQuery['paginatedCustomerAddress']>;
7
+ infinite: (variables: InfiniteCustomerAddressQueryVariables) => Promise<InfiniteCustomerAddressQuery['infiniteCustomerAddress']>;
8
+ all: (variables: InfiniteCustomerAddressQueryVariables) => Promise<InfiniteCustomerAddressQuery["infiniteCustomerAddress"]["edges"][number]["node"][]>;
9
+ }
10
+ export declare function createCustomerAddressesSdk(client: GraphQLClient): CustomerAddressesSdk;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createCustomerAddressesSdk = createCustomerAddressesSdk;
4
+ const gateway_1 = require("../../../graphql/src/gateway");
5
+ const fetch_all_infinite_util_1 = require("../utils/fetch-all-infinite.util");
6
+ function createCustomerAddressesSdk(client) {
7
+ const create = (variables) => {
8
+ return client.request(gateway_1.CreateCustomerAddressDocument, variables).then(data => data.createCustomerAddress);
9
+ };
10
+ const update = (variables) => {
11
+ return client.request(gateway_1.UpdateCustomerAddressDocument, variables).then(data => data.updateCustomerAddress);
12
+ };
13
+ const paginated = (variables) => {
14
+ return client.request(gateway_1.PaginatedCustomerAddressDocument, variables).then(data => data.paginatedCustomerAddress);
15
+ };
16
+ const infinite = (variables) => {
17
+ return client.request(gateway_1.InfiniteCustomerAddressDocument, variables).then(data => data.infiniteCustomerAddress);
18
+ };
19
+ const all = (variables) => {
20
+ const sdk = {
21
+ listInfinite: (v) => client.request(gateway_1.InfiniteCustomerAddressDocument, v),
22
+ };
23
+ return (0, fetch_all_infinite_util_1.fetchAllInfinite)(sdk, variables, (res) => res.infiniteCustomerAddress);
24
+ };
25
+ return { create, update, paginated, infinite, all };
26
+ }
27
+ //# sourceMappingURL=customer-addresses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-addresses.js","sourceRoot":"","sources":["../../../../src/services/customer-addresses.ts"],"names":[],"mappings":";;AA6CA,gEA6CC;AAzFD,0DAasC;AACtC,8EAAqF;AA8BrF,SAAgB,0BAA0B,CAAC,MAAqB;IAC9D,MAAM,MAAM,GAAG,CAAC,SAAiD,EAAE,EAAE;QACnE,OAAO,MAAM,CAAC,OAAO,CACnB,uCAA6B,EAC7B,SAAS,CACV,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC7C,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,CAAC,SAAiD,EAAE,EAAE;QACnE,OAAO,MAAM,CAAC,OAAO,CACnB,uCAA6B,EAC7B,SAAS,CACV,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC7C,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,CAAC,SAAiD,EAAE,EAAE;QACtE,OAAO,MAAM,CAAC,OAAO,CACnB,0CAAgC,EAChC,SAAS,CACV,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IAChD,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,SAAgD,EAAE,EAAE;QACpE,OAAO,MAAM,CAAC,OAAO,CACnB,yCAA+B,EAC/B,SAAS,CACV,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;IAC/C,CAAC,CAAC;IAEF,MAAM,GAAG,GAAG,CAAC,SAAgD,EAAE,EAAE;QAC/D,MAAM,GAAG,GAGL;YACF,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE,CAClB,MAAM,CAAC,OAAO,CACZ,yCAA+B,EAC/B,CAAC,CACF;SACJ,CAAC;QAEF,OAAO,IAAA,0CAAgB,EAAC,GAAG,EAAE,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;IAChF,CAAC,CAAC;IAEF,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;AACtD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { GraphQLClient } from "graphql-request";
2
+ import { CreateCustomerEmailAddressMutation, CreateCustomerEmailAddressMutationVariables, UpdateCustomerEmailAddressMutation, UpdateCustomerEmailAddressMutationVariables, PaginatedCustomerEmailAddressQuery, PaginatedCustomerEmailAddressQueryVariables, InfiniteCustomerEmailAddressQuery, InfiniteCustomerEmailAddressQueryVariables } from "../../../graphql/src/gateway";
3
+ export interface CustomerEmailAddressesSdk {
4
+ create: (variables: CreateCustomerEmailAddressMutationVariables) => Promise<CreateCustomerEmailAddressMutation['createCustomerEmailAddress']>;
5
+ update: (variables: UpdateCustomerEmailAddressMutationVariables) => Promise<UpdateCustomerEmailAddressMutation['updateCustomerEmailAddress']>;
6
+ paginated: (variables: PaginatedCustomerEmailAddressQueryVariables) => Promise<PaginatedCustomerEmailAddressQuery['paginatedCustomerEmailAddresses']>;
7
+ infinite: (variables: InfiniteCustomerEmailAddressQueryVariables) => Promise<InfiniteCustomerEmailAddressQuery['infiniteCustomerEmailAddresses']>;
8
+ all: (variables: InfiniteCustomerEmailAddressQueryVariables) => Promise<InfiniteCustomerEmailAddressQuery["infiniteCustomerEmailAddresses"]["edges"][number]["node"][]>;
9
+ }
10
+ export declare function createCustomerEmailAddressesSdk(client: GraphQLClient): CustomerEmailAddressesSdk;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createCustomerEmailAddressesSdk = createCustomerEmailAddressesSdk;
4
+ const gateway_1 = require("../../../graphql/src/gateway");
5
+ const fetch_all_infinite_util_1 = require("../utils/fetch-all-infinite.util");
6
+ function createCustomerEmailAddressesSdk(client) {
7
+ const create = (variables) => {
8
+ return client.request(gateway_1.CreateCustomerEmailAddressDocument, variables).then(data => data.createCustomerEmailAddress);
9
+ };
10
+ const update = (variables) => {
11
+ return client.request(gateway_1.UpdateCustomerEmailAddressDocument, variables).then(data => data.updateCustomerEmailAddress);
12
+ };
13
+ const paginated = (variables) => {
14
+ return client.request(gateway_1.PaginatedCustomerEmailAddressDocument, variables).then(data => data.paginatedCustomerEmailAddresses);
15
+ };
16
+ const infinite = (variables) => {
17
+ return client.request(gateway_1.InfiniteCustomerEmailAddressDocument, variables).then(data => data.infiniteCustomerEmailAddresses);
18
+ };
19
+ const all = (variables) => {
20
+ const sdk = {
21
+ listInfinite: (v) => client.request(gateway_1.InfiniteCustomerEmailAddressDocument, v),
22
+ };
23
+ return (0, fetch_all_infinite_util_1.fetchAllInfinite)(sdk, variables, (res) => res.infiniteCustomerEmailAddresses);
24
+ };
25
+ return { create, update, paginated, infinite, all };
26
+ }
27
+ //# sourceMappingURL=customer-email-addresses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-email-addresses.js","sourceRoot":"","sources":["../../../../src/services/customer-email-addresses.ts"],"names":[],"mappings":";;AA6CA,0EA6CC;AAzFD,0DAasC;AACtC,8EAAqF;AA8BrF,SAAgB,+BAA+B,CAAC,MAAqB;IACnE,MAAM,MAAM,GAAG,CAAC,SAAsD,EAAE,EAAE;QACxE,OAAO,MAAM,CAAC,OAAO,CACnB,4CAAkC,EAClC,SAAS,CACV,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;IAClD,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,CAAC,SAAsD,EAAE,EAAE;QACxE,OAAO,MAAM,CAAC,OAAO,CACnB,4CAAkC,EAClC,SAAS,CACV,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;IAClD,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,CAAC,SAAsD,EAAE,EAAE;QAC3E,OAAO,MAAM,CAAC,OAAO,CACnB,+CAAqC,EACrC,SAAS,CACV,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;IACvD,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,SAAqD,EAAE,EAAE;QACzE,OAAO,MAAM,CAAC,OAAO,CACnB,8CAAoC,EACpC,SAAS,CACV,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;IACtD,CAAC,CAAC;IAEF,MAAM,GAAG,GAAG,CAAC,SAAqD,EAAE,EAAE;QACpE,MAAM,GAAG,GAGL;YACF,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE,CAClB,MAAM,CAAC,OAAO,CACZ,8CAAoC,EACpC,CAAC,CACF;SACJ,CAAC;QAEF,OAAO,IAAA,0CAAgB,EAAC,GAAG,EAAE,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;IACvF,CAAC,CAAC;IAEF,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;AACtD,CAAC"}
@@ -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"}
@@ -10,3 +10,7 @@ export * from './orders';
10
10
  export * from './custom-fields';
11
11
  export * from './tags';
12
12
  export * from './cart';
13
+ export * from './metrics';
14
+ export * from './customer-addresses';
15
+ export * from './customer-email-addresses';
16
+ export * from './customer-telephone-numbers';
@@ -26,4 +26,8 @@ __exportStar(require("./orders"), exports);
26
26
  __exportStar(require("./custom-fields"), exports);
27
27
  __exportStar(require("./tags"), exports);
28
28
  __exportStar(require("./cart"), exports);
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);
29
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"}
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,5 +1,5 @@
1
1
  import { GraphQLClient } from "graphql-request";
2
- import { CreateProductMutation, CreateProductMutationVariables, UpdateProductMutation, UpdateProductMutationVariables, DeleteProductMutation, DeleteProductMutationVariables, PaginatedProductsQuery, PaginatedProductsQueryVariables, InfiniteProductsQuery, InfiniteProductsQueryVariables, ProductQuery, ProductQueryVariables } from "../../../graphql/src/gateway";
2
+ import { type CreateProductMutation, type CreateProductMutationVariables, type UpdateProductMutation, type UpdateProductMutationVariables, type DeleteProductMutation, type DeleteProductMutationVariables, type PaginatedProductsQuery, type PaginatedProductsQueryVariables, type InfiniteProductsQuery, type InfiniteProductsQueryVariables, ProductQuery, type ProductQueryVariables } from "../../../graphql/src/gateway";
3
3
  export interface ProductsSdk {
4
4
  create: (variables: CreateProductMutationVariables) => Promise<CreateProductMutation["createProduct"]>;
5
5
  update: (variables: UpdateProductMutationVariables) => Promise<UpdateProductMutation["updateProduct"]>;
@@ -1,13 +1,14 @@
1
- import { AttributesSdk, BrandsSdk, CartSdk, CategoriesSdk, ColorsSdk, CustomersSdk, CustomFieldsSdk, FileUploadSdk, OrdersSdk, ProductsSdk, SellersSdk, TagsSdk } from "@/services";
2
- import { MetricsSdk } from "@/services/metrics";
3
- export type { AttributesSdk, BrandsSdk, CategoriesSdk, ColorsSdk, CustomersSdk, CustomFieldsSdk, FileUploadSdk, OrdersSdk, ProductsSdk, SellersSdk, TagsSdk, };
4
- export interface DokamerceSDK {
1
+ import { AttributesSdk, BrandsSdk, CartSdk, CategoriesSdk, ColorsSdk, CustomersSdk, CustomFieldsSdk, FileUploadSdk, OrdersSdk, ProductsSdk, SellersSdk, TagsSdk, MetricsSdk, CustomerAddressesSdk, CustomerEmailAddressesSdk, CustomerTelephoneNumberSdk } from "../services";
2
+ export type DokamerceSDK = {
5
3
  products: ProductsSdk;
6
4
  attributes: AttributesSdk;
7
5
  brands: BrandsSdk;
8
6
  categories: CategoriesSdk;
9
7
  colors: ColorsSdk;
10
8
  customers: CustomersSdk;
9
+ customerAddresses: CustomerAddressesSdk;
10
+ customerEmailAddresses: CustomerEmailAddressesSdk;
11
+ customerTelephoneNUmbers: CustomerTelephoneNumberSdk;
11
12
  metrics: MetricsSdk;
12
13
  files: FileUploadSdk;
13
14
  orders: OrdersSdk;
@@ -15,4 +16,4 @@ export interface DokamerceSDK {
15
16
  customFields: CustomFieldsSdk;
16
17
  tags: TagsSdk;
17
18
  cart: CartSdk;
18
- }
19
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dokamerce/web-sdk",
3
- "version": "0.21.2",
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",
@@ -15,7 +15,7 @@
15
15
  "dist"
16
16
  ],
17
17
  "scripts": {
18
- "build": "rimraf dist && tsc",
18
+ "build": "rimraf dist && tsc -p tsconfig.json",
19
19
  "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
20
20
  "ls-lint": "ls-lint",
21
21
  "test": "jest",