@sentecacommerce-theme/lib 0.12.61 → 0.12.65

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 (63) hide show
  1. package/dist/cjs/contexts/CheckoutForm/index.js +1 -1
  2. package/dist/cjs/contexts/CheckoutForm/index.js.map +1 -1
  3. package/dist/cjs/hooks/useProduct/index.js +29 -1
  4. package/dist/cjs/hooks/useProduct/index.js.map +1 -1
  5. package/dist/cjs/hooks/useProduct/utils/index.js +21 -4
  6. package/dist/cjs/hooks/useProduct/utils/index.js.map +1 -1
  7. package/dist/cjs/order/api/mutations/index.js +8 -0
  8. package/dist/cjs/order/api/mutations/index.js.map +1 -1
  9. package/dist/cjs/order/api/mutations/useUpdateCustomLineItemMutation.js.map +1 -1
  10. package/dist/cjs/order/api/mutations/useUpdateOrderCustomFieldMutation.js +20 -0
  11. package/dist/cjs/order/api/mutations/useUpdateOrderCustomFieldMutation.js.map +1 -0
  12. package/dist/cjs/order/hooks/index.js +8 -0
  13. package/dist/cjs/order/hooks/index.js.map +1 -1
  14. package/dist/cjs/order/hooks/useUpdateCustomLineItem.js.map +1 -1
  15. package/dist/cjs/order/hooks/useUpdateOrderCustomField.js +13 -0
  16. package/dist/cjs/order/hooks/useUpdateOrderCustomField.js.map +1 -0
  17. package/dist/cjs/user/api/queries/index.js +8 -0
  18. package/dist/cjs/user/api/queries/index.js.map +1 -1
  19. package/dist/cjs/user/api/queries/useGetMyLoyaltyCardQuery.js +24 -0
  20. package/dist/cjs/user/api/queries/useGetMyLoyaltyCardQuery.js.map +1 -0
  21. package/dist/cjs/user/hooks/index.js +8 -0
  22. package/dist/cjs/user/hooks/index.js.map +1 -1
  23. package/dist/cjs/user/hooks/useGetMyLoyaltyCard.js +13 -0
  24. package/dist/cjs/user/hooks/useGetMyLoyaltyCard.js.map +1 -0
  25. package/dist/esm/contexts/CheckoutForm/index.js +1 -1
  26. package/dist/esm/contexts/CheckoutForm/index.js.map +1 -1
  27. package/dist/esm/hooks/useProduct/index.js +26 -2
  28. package/dist/esm/hooks/useProduct/index.js.map +1 -1
  29. package/dist/esm/hooks/useProduct/utils/index.js +16 -2
  30. package/dist/esm/hooks/useProduct/utils/index.js.map +1 -1
  31. package/dist/esm/order/api/mutations/index.js +1 -0
  32. package/dist/esm/order/api/mutations/index.js.map +1 -1
  33. package/dist/esm/order/api/mutations/useUpdateCustomLineItemMutation.js.map +1 -1
  34. package/dist/esm/order/api/mutations/useUpdateOrderCustomFieldMutation.js +9 -0
  35. package/dist/esm/order/api/mutations/useUpdateOrderCustomFieldMutation.js.map +1 -0
  36. package/dist/esm/order/hooks/index.js +1 -0
  37. package/dist/esm/order/hooks/index.js.map +1 -1
  38. package/dist/esm/order/hooks/useUpdateCustomLineItem.js.map +1 -1
  39. package/dist/esm/order/hooks/useUpdateOrderCustomField.js +5 -0
  40. package/dist/esm/order/hooks/useUpdateOrderCustomField.js.map +1 -0
  41. package/dist/esm/user/api/queries/index.js +1 -0
  42. package/dist/esm/user/api/queries/index.js.map +1 -1
  43. package/dist/esm/user/api/queries/useGetMyLoyaltyCardQuery.js +11 -0
  44. package/dist/esm/user/api/queries/useGetMyLoyaltyCardQuery.js.map +1 -0
  45. package/dist/esm/user/hooks/index.js +1 -0
  46. package/dist/esm/user/hooks/index.js.map +1 -1
  47. package/dist/esm/user/hooks/useGetMyLoyaltyCard.js +5 -0
  48. package/dist/esm/user/hooks/useGetMyLoyaltyCard.js.map +1 -0
  49. package/dist/types/hooks/basket-hooks/useBasketItemList/index.d.ts +1 -0
  50. package/dist/types/hooks/order-hooks/api/queries/useOrderGetPaymentMethodQuery.d.ts +1 -16
  51. package/dist/types/hooks/useProduct/index.d.ts +1 -0
  52. package/dist/types/hooks/useProduct/utils/index.d.ts +1 -0
  53. package/dist/types/order/api/mutations/index.d.ts +1 -0
  54. package/dist/types/order/api/mutations/useUpdateCustomLineItemMutation.d.ts +2 -5
  55. package/dist/types/order/api/mutations/useUpdateOrderCustomFieldMutation.d.ts +9 -0
  56. package/dist/types/order/hooks/index.d.ts +1 -0
  57. package/dist/types/order/hooks/useUpdateCustomLineItem.d.ts +2 -2
  58. package/dist/types/order/hooks/useUpdateOrderCustomField.d.ts +2 -0
  59. package/dist/types/user/api/queries/index.d.ts +1 -0
  60. package/dist/types/user/api/queries/useGetMyLoyaltyCardQuery.d.ts +5 -0
  61. package/dist/types/user/hooks/index.d.ts +1 -0
  62. package/dist/types/user/hooks/useGetMyLoyaltyCard.d.ts +2 -0
  63. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/order/api/mutations/useUpdateCustomLineItemMutation.tsx"],"names":["MyOrdersUpdateCustomLineItem","useMutation","useUpdateCustomLineItemMutation","onSuccess","onError","values","id","customLineItemId","dto"],"mappings":"AAAA,SACEA,4BADF,QAGO,sBAHP;AAIA,SAASC,WAAT,QAA4B,aAA5B;AAaA,OAAO,IAAMC,+BAA+B,GAAG,UAGN;AAAA,MAHO;AAC9CC,IAAAA,SAD8C;AAE9CC,IAAAA;AAF8C,GAGP;AACvC,SAAOH,WAAW,CACfI,MAAD,IACEL,4BAA4B,CAC1BK,MAAM,CAACC,EADmB,EAE1BD,MAAM,CAACE,gBAFmB,EAG1BF,MAAM,CAACG,GAHmB,CAFd,EAOhB;AACEL,IAAAA,SADF;AAEEC,IAAAA;AAFF,GAPgB,CAAlB;AAYD,CAhBM","sourcesContent":["import {\n MyOrdersUpdateCustomLineItem,\n CustomLineItemDraftDTO,\n} from '@sentecacommerce/sdk'\nimport { useMutation } from 'react-query'\n\nexport interface UpdateCustomLineItemMutationProps {\n onSuccess?: () => void\n onError?: () => void\n}\n\nexport interface UpdateCustomLineItemProps {\n id: string\n customLineItemId: string\n dto: CustomLineItemDraftDTO\n}\n\nexport const useUpdateCustomLineItemMutation = ({\n onSuccess,\n onError,\n}: UpdateCustomLineItemMutationProps) => {\n return useMutation(\n (values: UpdateCustomLineItemProps) =>\n MyOrdersUpdateCustomLineItem(\n values.id,\n values.customLineItemId,\n values.dto\n ),\n {\n onSuccess,\n onError,\n }\n )\n}\n"],"file":"useUpdateCustomLineItemMutation.js"}
1
+ {"version":3,"sources":["../../../../../src/order/api/mutations/useUpdateCustomLineItemMutation.tsx"],"names":["MyOrdersUpdateCustomLineItem","useMutation","useUpdateCustomLineItemMutation","onSuccess","onError","values","id","customLineItemId","dto"],"mappings":"AAAA,SACEA,4BADF,QAGO,sBAHP;AAIA,SAASC,WAAT,QAA4B,aAA5B;AASA,OAAO,IAAMC,+BAA+B,GAAG,UAG1B;AAAA,MAH2B;AAC9CC,IAAAA,SAD8C;AAE9CC,IAAAA;AAF8C,GAG3B;AACnB,SAAOH,WAAW,CACfI,MAAD,IACEL,4BAA4B,CAC1BK,MAAM,CAACC,EADmB,EAE1BD,MAAM,CAACE,gBAFmB,EAG1BF,MAAM,CAACG,GAHmB,CAFd,EAOhB;AACEL,IAAAA,SADF;AAEEC,IAAAA;AAFF,GAPgB,CAAlB;AAYD,CAhBM","sourcesContent":["import {\n MyOrdersUpdateCustomLineItem,\n CustomLineItemDraftDTO,\n} from '@sentecacommerce/sdk'\nimport { useMutation } from 'react-query'\nimport { CallbackProps } from '../index'\n\nexport interface UpdateCustomLineItemProps {\n id: string\n customLineItemId: string\n dto: CustomLineItemDraftDTO\n}\n\nexport const useUpdateCustomLineItemMutation = ({\n onSuccess,\n onError,\n}: CallbackProps) => {\n return useMutation(\n (values: UpdateCustomLineItemProps) =>\n MyOrdersUpdateCustomLineItem(\n values.id,\n values.customLineItemId,\n values.dto\n ),\n {\n onSuccess,\n onError,\n }\n )\n}\n"],"file":"useUpdateCustomLineItemMutation.js"}
@@ -0,0 +1,9 @@
1
+ import { MyCartSetCartCustomField } from '@sentecacommerce/sdk';
2
+ import { useMutation } from 'react-query';
3
+ export var useUpdateOrderCustomFieldMutation = callback => {
4
+ return useMutation(values => MyCartSetCartCustomField(values.customFields), {
5
+ onSuccess: callback == null ? void 0 : callback.onSuccess,
6
+ onError: callback == null ? void 0 : callback.onError
7
+ });
8
+ };
9
+ //# sourceMappingURL=useUpdateOrderCustomFieldMutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/order/api/mutations/useUpdateOrderCustomFieldMutation.tsx"],"names":["MyCartSetCartCustomField","useMutation","useUpdateOrderCustomFieldMutation","callback","values","customFields","onSuccess","onError"],"mappings":"AAAA,SACEA,wBADF,QAGO,sBAHP;AAIA,SAASC,WAAT,QAA4B,aAA5B;AAWA,OAAO,IAAMC,iCAAiC,GAAIC,QAAD,IAA8B;AAC7E,SAAOF,WAAW,CACfG,MAAD,IACEJ,wBAAwB,CAACI,MAAM,CAACC,YAAR,CAFV,EAGhB;AACEC,IAAAA,SAAS,EAAEH,QAAF,oBAAEA,QAAQ,CAAEG,SADvB;AAEEC,IAAAA,OAAO,EAAEJ,QAAF,oBAAEA,QAAQ,CAAEI;AAFrB,GAHgB,CAAlB;AAQD,CATM","sourcesContent":["import {\n MyCartSetCartCustomField,\n SetCustomFieldDTO,\n} from '@sentecacommerce/sdk'\nimport { useMutation } from 'react-query'\n\nexport interface CallbackProps {\n onSuccess?: () => void\n onError?: () => void\n}\n\nexport interface SetCustomFieldProps {\n customFields: SetCustomFieldDTO[]\n}\n\nexport const useUpdateOrderCustomFieldMutation = (callback?: CallbackProps) => {\n return useMutation(\n (values: SetCustomFieldProps) =>\n MyCartSetCartCustomField(values.customFields),\n {\n onSuccess: callback?.onSuccess,\n onError: callback?.onError,\n }\n )\n}\n"],"file":"useUpdateOrderCustomFieldMutation.js"}
@@ -1,2 +1,3 @@
1
1
  export * from './useUpdateCustomLineItem';
2
+ export * from './useUpdateOrderCustomField';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/order/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAAd","sourcesContent":["export * from './useUpdateCustomLineItem'\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/order/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAAd;AACA,cAAc,6BAAd","sourcesContent":["export * from './useUpdateCustomLineItem'\nexport * from './useUpdateOrderCustomField'\n"],"file":"index.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/order/hooks/useUpdateCustomLineItem.tsx"],"names":["useUpdateCustomLineItemMutation","useUpdateCustomLineItem","props"],"mappings":"AAAA,SACEA,+BADF,QAGO,QAHP;AAKA,OAAO,IAAMC,uBAAuB,GAClCC,KADqC,IAElC;AACH,SAAOF,+BAA+B,CAACE,KAAD,CAAtC;AACD,CAJM","sourcesContent":["import {\n useUpdateCustomLineItemMutation,\n UpdateCustomLineItemMutationProps,\n} from '../api'\n\nexport const useUpdateCustomLineItem = (\n props: UpdateCustomLineItemMutationProps\n) => {\n return useUpdateCustomLineItemMutation(props)\n}\n"],"file":"useUpdateCustomLineItem.js"}
1
+ {"version":3,"sources":["../../../../src/order/hooks/useUpdateCustomLineItem.tsx"],"names":["useUpdateCustomLineItemMutation","useUpdateCustomLineItem","props"],"mappings":"AAAA,SAASA,+BAAT,QAA+D,QAA/D;AAEA,OAAO,IAAMC,uBAAuB,GAAIC,KAAD,IAA0B;AAC/D,SAAOF,+BAA+B,CAACE,KAAD,CAAtC;AACD,CAFM","sourcesContent":["import { useUpdateCustomLineItemMutation, CallbackProps } from '../api'\n\nexport const useUpdateCustomLineItem = (props: CallbackProps) => {\n return useUpdateCustomLineItemMutation(props)\n}\n"],"file":"useUpdateCustomLineItem.js"}
@@ -0,0 +1,5 @@
1
+ import { useUpdateOrderCustomFieldMutation } from '../api';
2
+ export var useUpdateOrderCustomField = props => {
3
+ return useUpdateOrderCustomFieldMutation(props);
4
+ };
5
+ //# sourceMappingURL=useUpdateOrderCustomField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/order/hooks/useUpdateOrderCustomField.tsx"],"names":["useUpdateOrderCustomFieldMutation","useUpdateOrderCustomField","props"],"mappings":"AAAA,SAASA,iCAAT,QAAiE,QAAjE;AAEA,OAAO,IAAMC,yBAAyB,GAAIC,KAAD,IAA0B;AACjE,SAAOF,iCAAiC,CAACE,KAAD,CAAxC;AACD,CAFM","sourcesContent":["import { useUpdateOrderCustomFieldMutation, CallbackProps } from '../api'\n\nexport const useUpdateOrderCustomField = (props: CallbackProps) => {\n return useUpdateOrderCustomFieldMutation(props)\n}\n"],"file":"useUpdateOrderCustomField.js"}
@@ -1,2 +1,3 @@
1
1
  export * from './useIsAuthenticatedQuery';
2
+ export * from './useGetMyLoyaltyCardQuery';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/user/api/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAAd","sourcesContent":["export * from './useIsAuthenticatedQuery'\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../../src/user/api/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAAd;AACA,cAAc,4BAAd","sourcesContent":["export * from './useIsAuthenticatedQuery'\nexport * from './useGetMyLoyaltyCardQuery'\n"],"file":"index.js"}
@@ -0,0 +1,11 @@
1
+ import { MyWalletGetByType } from '@sentecacommerce/sdk';
2
+ import { useQuery } from 'react-query';
3
+ export var useGetMyLoyaltyCardQuery = callback => {
4
+ return useQuery('get-loyalty-card-key', () => {
5
+ return MyWalletGetByType('loyalty-program');
6
+ }, {
7
+ onSuccess: () => callback == null ? void 0 : callback.onSuccess == null ? void 0 : callback.onSuccess(),
8
+ onError: err => callback == null ? void 0 : callback.onError == null ? void 0 : callback.onError(err)
9
+ });
10
+ };
11
+ //# sourceMappingURL=useGetMyLoyaltyCardQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/user/api/queries/useGetMyLoyaltyCardQuery.ts"],"names":["MyWalletGetByType","useQuery","useGetMyLoyaltyCardQuery","callback","onSuccess","onError","err"],"mappings":"AAAA,SAASA,iBAAT,QAAkC,sBAAlC;AACA,SAASC,QAAT,QAAyB,aAAzB;AAMA,OAAO,IAAMC,wBAAwB,GAAIC,QAAD,IAA6B;AACnE,SAAOF,QAAQ,CACb,sBADa,EAEb,MAAM;AACJ,WAAOD,iBAAiB,CAAC,iBAAD,CAAxB;AACD,GAJY,EAKb;AACEI,IAAAA,SAAS,EAAE,MAAMD,QAAN,oBAAMA,QAAQ,CAAEC,SAAhB,oBAAMD,QAAQ,CAAEC,SAAV,EADnB;AAEEC,IAAAA,OAAO,EAAGC,GAAD,IAASH,QAAT,oBAASA,QAAQ,CAAEE,OAAnB,oBAASF,QAAQ,CAAEE,OAAV,CAAoBC,GAApB;AAFpB,GALa,CAAf;AAUD,CAXM","sourcesContent":["import { MyWalletGetByType } from '@sentecacommerce/sdk'\nimport { useQuery } from 'react-query'\n\nexport type CallbackType = {\n onSuccess?: () => void\n onError?: (err: unknown) => void\n}\nexport const useGetMyLoyaltyCardQuery = (callback?: CallbackType) => {\n return useQuery(\n 'get-loyalty-card-key',\n () => {\n return MyWalletGetByType('loyalty-program')\n },\n {\n onSuccess: () => callback?.onSuccess?.(),\n onError: (err) => callback?.onError?.(err),\n }\n )\n}\n"],"file":"useGetMyLoyaltyCardQuery.js"}
@@ -14,4 +14,5 @@ export * from './useVerifyChangeEmail';
14
14
  export * from './useChangeEmail';
15
15
  export * from './useRequestEmailConfirmation';
16
16
  export * from './useGetUserToken';
17
+ export * from './useGetMyLoyaltyCard';
17
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/user/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAd;AACA,cAAc,kBAAd;AACA,cAAc,mBAAd;AACA,cAAc,sBAAd;AACA,cAAc,YAAd;AACA,cAAc,iBAAd;AACA,cAAc,oBAAd;AACA,cAAc,kBAAd;AACA,cAAc,aAAd;AACA,cAAc,eAAd;AACA,cAAc,gCAAd;AACA,cAAc,oBAAd;AACA,cAAc,wBAAd;AACA,cAAc,kBAAd;AACA,cAAc,+BAAd;AACA,cAAc,mBAAd","sourcesContent":["export * from './useAuthGuard'\nexport * from './useRequestAnon'\nexport * from './useConfirmEmail'\nexport * from './useIsAuthenticated'\nexport * from './useLogin'\nexport * from './useLoginApple'\nexport * from './useLoginFacebook'\nexport * from './useLoginGoogle'\nexport * from './useLogout'\nexport * from './useRegister'\nexport * from './useRequestResetPasswordToken'\nexport * from './useResetPassword'\nexport * from './useVerifyChangeEmail'\nexport * from './useChangeEmail'\nexport * from './useRequestEmailConfirmation'\nexport * from './useGetUserToken'\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/user/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAd;AACA,cAAc,kBAAd;AACA,cAAc,mBAAd;AACA,cAAc,sBAAd;AACA,cAAc,YAAd;AACA,cAAc,iBAAd;AACA,cAAc,oBAAd;AACA,cAAc,kBAAd;AACA,cAAc,aAAd;AACA,cAAc,eAAd;AACA,cAAc,gCAAd;AACA,cAAc,oBAAd;AACA,cAAc,wBAAd;AACA,cAAc,kBAAd;AACA,cAAc,+BAAd;AACA,cAAc,mBAAd;AACA,cAAc,uBAAd","sourcesContent":["export * from './useAuthGuard'\nexport * from './useRequestAnon'\nexport * from './useConfirmEmail'\nexport * from './useIsAuthenticated'\nexport * from './useLogin'\nexport * from './useLoginApple'\nexport * from './useLoginFacebook'\nexport * from './useLoginGoogle'\nexport * from './useLogout'\nexport * from './useRegister'\nexport * from './useRequestResetPasswordToken'\nexport * from './useResetPassword'\nexport * from './useVerifyChangeEmail'\nexport * from './useChangeEmail'\nexport * from './useRequestEmailConfirmation'\nexport * from './useGetUserToken'\nexport * from './useGetMyLoyaltyCard'\n"],"file":"index.js"}
@@ -0,0 +1,5 @@
1
+ import { useGetMyLoyaltyCardQuery } from '../api';
2
+ export var useGetMyLoyaltyCard = callback => {
3
+ return useGetMyLoyaltyCardQuery(callback);
4
+ };
5
+ //# sourceMappingURL=useGetMyLoyaltyCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/user/hooks/useGetMyLoyaltyCard.ts"],"names":["useGetMyLoyaltyCardQuery","useGetMyLoyaltyCard","callback"],"mappings":"AAAA,SAASA,wBAAT,QAAuD,QAAvD;AAEA,OAAO,IAAMC,mBAAmB,GAAIC,QAAD,IAA6B;AAC9D,SAAOF,wBAAwB,CAACE,QAAD,CAA/B;AACD,CAFM","sourcesContent":["import { useGetMyLoyaltyCardQuery, CallbackType } from '../api'\n\nexport const useGetMyLoyaltyCard = (callback?: CallbackType) => {\n return useGetMyLoyaltyCardQuery(callback)\n}\n"],"file":"useGetMyLoyaltyCard.js"}
@@ -36,5 +36,6 @@ export declare const useBasketItemList: () => {
36
36
  shippingDetails?: import("@sentecacommerce/sdk").ItemShippingDetailsDraftDTO | undefined;
37
37
  fields?: any;
38
38
  custom?: import("@sentecacommerce/sdk").CustomField[] | undefined;
39
+ type: string;
39
40
  }[];
40
41
  };
@@ -1,16 +1 @@
1
- export declare const useOrderGetPaymentMethodQuery: (orderId: string) => import("react-query").QueryResult<{
2
- name: string;
3
- description: string;
4
- _id: string;
5
- createdAt: number;
6
- updatedAt: number;
7
- version?: number | undefined;
8
- key: string;
9
- type: import("@sentecacommerce/sdk").PaymentMethodDTOTypeEnum;
10
- moduleKey?: string | undefined;
11
- authority: import("@sentecacommerce/sdk").PaymentMethodDTOAuthorityEnum;
12
- merchantKey?: string | undefined;
13
- countryCode: string;
14
- currencyCode: string;
15
- config: any;
16
- }, unknown>;
1
+ export declare const useOrderGetPaymentMethodQuery: (orderId: string) => import("react-query").QueryResult<any, unknown>;
@@ -136,6 +136,7 @@ declare type ProductStateContextType = {
136
136
  seoData: SeoInformationType;
137
137
  variants?: VariantMap;
138
138
  selectedVariant?: VariantType | null;
139
+ collapsedImages?: object;
139
140
  };
140
141
  export declare type VideoType = {
141
142
  type: string;
@@ -11,6 +11,7 @@ export declare const createProductContent: (data: any) => {
11
11
  name: string;
12
12
  content: string;
13
13
  };
14
+ export declare const createCollapseKeyImagesMap: (product?: ProductDTO | undefined) => {} | undefined;
14
15
  export declare const createAttributeRulesMap: (product?: ProductDTO | undefined) => any;
15
16
  export declare const createMappedOptions: (options?: OptionDefinitionDTO[] | undefined) => OptionsType[];
16
17
  export declare type SelectedOptionType = {
@@ -1 +1,2 @@
1
1
  export * from './useUpdateCustomLineItemMutation';
2
+ export * from './useUpdateOrderCustomFieldMutation';
@@ -1,11 +1,8 @@
1
1
  import { CustomLineItemDraftDTO } from '@sentecacommerce/sdk';
2
- export interface UpdateCustomLineItemMutationProps {
3
- onSuccess?: () => void;
4
- onError?: () => void;
5
- }
2
+ import { CallbackProps } from '../index';
6
3
  export interface UpdateCustomLineItemProps {
7
4
  id: string;
8
5
  customLineItemId: string;
9
6
  dto: CustomLineItemDraftDTO;
10
7
  }
11
- export declare const useUpdateCustomLineItemMutation: ({ onSuccess, onError, }: UpdateCustomLineItemMutationProps) => import("react-query").MutationResultPair<import("@sentecacommerce/sdk").OrderDTO, unknown, UpdateCustomLineItemProps, unknown>;
8
+ export declare const useUpdateCustomLineItemMutation: ({ onSuccess, onError, }: CallbackProps) => import("react-query").MutationResultPair<import("@sentecacommerce/sdk").OrderDTO, unknown, UpdateCustomLineItemProps, unknown>;
@@ -0,0 +1,9 @@
1
+ import { SetCustomFieldDTO } from '@sentecacommerce/sdk';
2
+ export interface CallbackProps {
3
+ onSuccess?: () => void;
4
+ onError?: () => void;
5
+ }
6
+ export interface SetCustomFieldProps {
7
+ customFields: SetCustomFieldDTO[];
8
+ }
9
+ export declare const useUpdateOrderCustomFieldMutation: (callback?: CallbackProps | undefined) => import("react-query").MutationResultPair<import("@sentecacommerce/sdk").OrderDTO, unknown, SetCustomFieldProps, unknown>;
@@ -1 +1,2 @@
1
1
  export * from './useUpdateCustomLineItem';
2
+ export * from './useUpdateOrderCustomField';
@@ -1,2 +1,2 @@
1
- import { UpdateCustomLineItemMutationProps } from '../api';
2
- export declare const useUpdateCustomLineItem: (props: UpdateCustomLineItemMutationProps) => import("react-query").MutationResultPair<import("@sentecacommerce/sdk").OrderDTO, unknown, import("../api").UpdateCustomLineItemProps, unknown>;
1
+ import { CallbackProps } from '../api';
2
+ export declare const useUpdateCustomLineItem: (props: CallbackProps) => import("react-query").MutationResultPair<import("@sentecacommerce/sdk").OrderDTO, unknown, import("../api").UpdateCustomLineItemProps, unknown>;
@@ -0,0 +1,2 @@
1
+ import { CallbackProps } from '../api';
2
+ export declare const useUpdateOrderCustomField: (props: CallbackProps) => import("react-query").MutationResultPair<import("@sentecacommerce/sdk").OrderDTO, unknown, import("../api").SetCustomFieldProps, unknown>;
@@ -1 +1,2 @@
1
1
  export * from './useIsAuthenticatedQuery';
2
+ export * from './useGetMyLoyaltyCardQuery';
@@ -0,0 +1,5 @@
1
+ export declare type CallbackType = {
2
+ onSuccess?: () => void;
3
+ onError?: (err: unknown) => void;
4
+ };
5
+ export declare const useGetMyLoyaltyCardQuery: (callback?: CallbackType | undefined) => import("react-query").QueryResult<import("@sentecacommerce/sdk").WalletDTO, unknown>;
@@ -14,3 +14,4 @@ export * from './useVerifyChangeEmail';
14
14
  export * from './useChangeEmail';
15
15
  export * from './useRequestEmailConfirmation';
16
16
  export * from './useGetUserToken';
17
+ export * from './useGetMyLoyaltyCard';
@@ -0,0 +1,2 @@
1
+ import { CallbackType } from '../api';
2
+ export declare const useGetMyLoyaltyCard: (callback?: CallbackType | undefined) => import("react-query").QueryResult<import("@sentecacommerce/sdk").WalletDTO, unknown>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sentecacommerce-theme/lib",
3
3
  "sideEffects": false,
4
- "version": "0.12.61",
4
+ "version": "0.12.65",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/types/index.d.ts",
@@ -28,10 +28,10 @@
28
28
  "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
29
29
  "dev": "yarn build:esm --watch"
30
30
  },
31
- "gitHead": "fc0a1d4416b1a61bc480b63130febffb0a5b3cfd",
31
+ "gitHead": "8f6065d3eee708faff30c0bed5cb5fe507f2d1e0",
32
32
  "dependencies": {
33
- "@sentecacommerce-theme/base": "^0.12.61",
34
- "@sentecacommerce/sdk": "2.0.133",
33
+ "@sentecacommerce-theme/base": "^0.12.65",
34
+ "@sentecacommerce/sdk": "2.0.139",
35
35
  "body-scroll-lock": "^3.1.5",
36
36
  "copy-to-clipboard": "^3.3.1",
37
37
  "embla-carousel": "^4.5.1",