@timardex/cluemart-shared 1.7.88 → 1.7.90

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 (67) hide show
  1. package/dist/{ad-BwfNEfvN.d.ts → ad-BX_Da-0Q.d.ts} +1 -1
  2. package/dist/{ad-CjiiPTke.d.mts → ad-MA6buSLw.d.mts} +1 -1
  3. package/dist/{affiliate-Ci9YSdAV.d.mts → affiliate-Cb8BLoQc.d.mts} +1 -1
  4. package/dist/{affiliate-B4e50Q65.d.ts → affiliate-DXpSgV4o.d.ts} +1 -1
  5. package/dist/auth/index.d.mts +2 -2
  6. package/dist/auth/index.d.ts +2 -2
  7. package/dist/auth/index.mjs +1 -1
  8. package/dist/billingCatalog-Bca0IZG_.d.mts +54 -0
  9. package/dist/billingCatalog-Rh9yvue3.d.ts +54 -0
  10. package/dist/{chunk-M3R2UY5Z.mjs → chunk-6VTX7IPF.mjs} +189 -137
  11. package/dist/chunk-6VTX7IPF.mjs.map +1 -0
  12. package/dist/{chunk-RCARDOVS.mjs → chunk-D3U4LBOQ.mjs} +88 -4
  13. package/dist/chunk-D3U4LBOQ.mjs.map +1 -0
  14. package/dist/{chunk-4BN6SNMF.mjs → chunk-JAIBL6IU.mjs} +2 -2
  15. package/dist/{chunk-DFAYHIEZ.mjs → chunk-JX7Q5EI4.mjs} +3 -3
  16. package/dist/{chunk-7IB7QPVH.mjs → chunk-P4NLBWEJ.mjs} +3 -3
  17. package/dist/chunk-P4NLBWEJ.mjs.map +1 -0
  18. package/dist/{chunk-364EX22V.mjs → chunk-TD52IH52.mjs} +1 -1
  19. package/dist/chunk-TD52IH52.mjs.map +1 -0
  20. package/dist/{chunk-2UNNIQIK.mjs → chunk-YRO6KEZG.mjs} +2 -2
  21. package/dist/enums/index.cjs +2 -2
  22. package/dist/enums/index.cjs.map +1 -1
  23. package/dist/enums/index.d.mts +3 -3
  24. package/dist/enums/index.d.ts +3 -3
  25. package/dist/enums/index.mjs +1 -1
  26. package/dist/formFields/index.cjs +59 -0
  27. package/dist/formFields/index.cjs.map +1 -1
  28. package/dist/formFields/index.mjs +5 -5
  29. package/dist/graphql/index.cjs +191 -137
  30. package/dist/graphql/index.cjs.map +1 -1
  31. package/dist/graphql/index.d.mts +34 -22
  32. package/dist/graphql/index.d.ts +34 -22
  33. package/dist/graphql/index.mjs +8 -4
  34. package/dist/hooks/index.cjs +189 -92
  35. package/dist/hooks/index.cjs.map +1 -1
  36. package/dist/hooks/index.d.mts +3 -3
  37. package/dist/hooks/index.d.ts +3 -3
  38. package/dist/hooks/index.mjs +7 -7
  39. package/dist/index.cjs +283 -139
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.mts +106 -23
  42. package/dist/index.d.ts +106 -23
  43. package/dist/index.mjs +274 -138
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/{resourceActivities-C14qOL7_.d.ts → resourceActivities-CAr2chXT.d.ts} +1 -1
  46. package/dist/{resourceActivities-BDp-h5yH.d.mts → resourceActivities-e3GkUqTN.d.mts} +1 -1
  47. package/dist/sharing/index.cjs.map +1 -1
  48. package/dist/sharing/index.mjs +3 -3
  49. package/dist/types/index.cjs.map +1 -1
  50. package/dist/types/index.d.mts +5 -4
  51. package/dist/types/index.d.ts +5 -4
  52. package/dist/types/index.mjs +2 -2
  53. package/dist/{user-DzOlyCj5.d.mts → user-BTzwLwJl.d.mts} +0 -1
  54. package/dist/{user-BC4SpAj_.d.ts → user-D6Mt35k0.d.ts} +0 -1
  55. package/dist/utils/index.cjs +90 -0
  56. package/dist/utils/index.cjs.map +1 -1
  57. package/dist/utils/index.d.mts +27 -4
  58. package/dist/utils/index.d.ts +27 -4
  59. package/dist/utils/index.mjs +16 -4
  60. package/package.json +1 -1
  61. package/dist/chunk-364EX22V.mjs.map +0 -1
  62. package/dist/chunk-7IB7QPVH.mjs.map +0 -1
  63. package/dist/chunk-M3R2UY5Z.mjs.map +0 -1
  64. package/dist/chunk-RCARDOVS.mjs.map +0 -1
  65. /package/dist/{chunk-4BN6SNMF.mjs.map → chunk-JAIBL6IU.mjs.map} +0 -0
  66. /package/dist/{chunk-DFAYHIEZ.mjs.map → chunk-JX7Q5EI4.mjs.map} +0 -0
  67. /package/dist/{chunk-2UNNIQIK.mjs.map → chunk-YRO6KEZG.mjs.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { EnumPartnerType, EnumResourceType, EnumOSPlatform } from './enums/index.js';
2
2
  import { Q as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, a2 as CreateFormData, aL as ResourceContactDetailsType, aN as ResourceImageType, aO as SocialMediaType, aS as TermsAgreement, ao as OwnerType, aC as PromoCodeType, M as MutationResponse } from './global-DTXnm4Ok.js';
3
3
  import { PosterAssetId } from './images/index.js';
4
- import { S as SafeUserType, e as UserFormData } from './user-BC4SpAj_.js';
4
+ import { S as SafeUserType, e as UserFormData } from './user-D6Mt35k0.js';
5
5
 
6
6
  interface PartnerFormData extends BaseResourceTypeFormData {
7
7
  location: LocationType;
@@ -1,7 +1,7 @@
1
1
  import { EnumPartnerType, EnumResourceType, EnumOSPlatform } from './enums/index.mjs';
2
2
  import { Q as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, a2 as CreateFormData, aL as ResourceContactDetailsType, aN as ResourceImageType, aO as SocialMediaType, aS as TermsAgreement, ao as OwnerType, aC as PromoCodeType, M as MutationResponse } from './global-CDYmiqmd.mjs';
3
3
  import { PosterAssetId } from './images/index.mjs';
4
- import { S as SafeUserType, e as UserFormData } from './user-DzOlyCj5.mjs';
4
+ import { S as SafeUserType, e as UserFormData } from './user-BTzwLwJl.mjs';
5
5
 
6
6
  interface PartnerFormData extends BaseResourceTypeFormData {
7
7
  location: LocationType;
@@ -1,6 +1,6 @@
1
1
  import { EnumResourceType } from './enums/index.mjs';
2
2
  import { aC as PromoCodeType, L as LocationType, aO as SocialMediaType, ao as OwnerType, a2 as CreateFormData } from './global-CDYmiqmd.mjs';
3
- import { e as UserFormData } from './user-DzOlyCj5.mjs';
3
+ import { e as UserFormData } from './user-BTzwLwJl.mjs';
4
4
 
5
5
  declare enum EnumAffiliateParticipantType {
6
6
  INDIVIDUAL = "INDIVIDUAL",
@@ -1,6 +1,6 @@
1
1
  import { EnumResourceType } from './enums/index.js';
2
2
  import { aC as PromoCodeType, L as LocationType, aO as SocialMediaType, ao as OwnerType, a2 as CreateFormData } from './global-DTXnm4Ok.js';
3
- import { e as UserFormData } from './user-BC4SpAj_.js';
3
+ import { e as UserFormData } from './user-D6Mt35k0.js';
4
4
 
5
5
  declare enum EnumAffiliateParticipantType {
6
6
  INDIVIDUAL = "INDIVIDUAL",
@@ -1,6 +1,6 @@
1
1
  import { EnumUserRole, EnumResourceType, EnumUserLicence } from '../enums/index.mjs';
2
- import { P as Permission, S as SafeUserType } from '../user-DzOlyCj5.mjs';
3
- export { a as PERMISSIONS, W as WILDCARD_PERMISSION } from '../user-DzOlyCj5.mjs';
2
+ import { P as Permission, S as SafeUserType } from '../user-BTzwLwJl.mjs';
3
+ export { a as PERMISSIONS, W as WILDCARD_PERMISSION } from '../user-BTzwLwJl.mjs';
4
4
  import { T as Tier } from '../subscription-bmAdrnfi.mjs';
5
5
  import React, { ReactNode } from 'react';
6
6
  import '../global-CDYmiqmd.mjs';
@@ -1,6 +1,6 @@
1
1
  import { EnumUserRole, EnumResourceType, EnumUserLicence } from '../enums/index.js';
2
- import { P as Permission, S as SafeUserType } from '../user-BC4SpAj_.js';
3
- export { a as PERMISSIONS, W as WILDCARD_PERMISSION } from '../user-BC4SpAj_.js';
2
+ import { P as Permission, S as SafeUserType } from '../user-D6Mt35k0.js';
3
+ export { a as PERMISSIONS, W as WILDCARD_PERMISSION } from '../user-D6Mt35k0.js';
4
4
  import { T as Tier } from '../subscription-BU8GvH2K.js';
5
5
  import React, { ReactNode } from 'react';
6
6
  import '../global-DTXnm4Ok.js';
@@ -28,7 +28,7 @@ import {
28
28
  useGetUser,
29
29
  useLogout
30
30
  } from "../chunk-GA6E5NK3.mjs";
31
- import "../chunk-7IB7QPVH.mjs";
31
+ import "../chunk-P4NLBWEJ.mjs";
32
32
 
33
33
  // src/auth/createAuthManager.ts
34
34
  function createAuthManager() {
@@ -0,0 +1,54 @@
1
+ import { EnumBillingPeriod, EnumUserLicence } from './enums/index.mjs';
2
+
3
+ type BillingCatalogKey = "pro_vendor_monthly" | "pro_vendor_yearly" | "pro_plus_vendor_monthly" | "pro_plus_vendor_yearly";
4
+ type BillingCatalogDefinition = {
5
+ billingPeriod: EnumBillingPeriod.MONTHLY_CANCEL_ANYTIME | EnumBillingPeriod.YEARLY_ANNUAL_BILLED;
6
+ licenceType: EnumUserLicence.PRO_VENDOR | EnumUserLicence.PRO_PLUS_VENDOR;
7
+ };
8
+ type PaidVendorLicence = BillingCatalogDefinition["licenceType"];
9
+ type PaidVendorBillingPeriod = BillingCatalogDefinition["billingPeriod"];
10
+ type BillingCatalogInitialEntry = BillingCatalogDefinition & {
11
+ active: boolean;
12
+ currency: "nzd";
13
+ key: BillingCatalogKey;
14
+ taxInclusive: boolean;
15
+ /** Price in the currency's smallest unit (NZD cents). */
16
+ unitAmount: number;
17
+ };
18
+ type BillingCatalogPriceHistoryEntry = {
19
+ changedAt: Date;
20
+ changedBy?: string | null;
21
+ currency: string;
22
+ effectiveFrom: Date;
23
+ effectiveTo: Date;
24
+ stripePriceId?: string | null;
25
+ stripeProductId?: string | null;
26
+ unitAmount: number;
27
+ };
28
+ type BillingCatalogEntryType = BillingCatalogDefinition & {
29
+ _id: string;
30
+ active: boolean;
31
+ createdAt: Date;
32
+ currency: string;
33
+ effectiveFrom: Date;
34
+ key: BillingCatalogKey;
35
+ priceHistory: BillingCatalogPriceHistoryEntry[];
36
+ revision: number;
37
+ stripePriceId?: string | null;
38
+ stripeProductId?: string | null;
39
+ taxInclusive: boolean;
40
+ unitAmount: number;
41
+ updatedAt: Date;
42
+ updatedBy?: string | null;
43
+ };
44
+ type UpdateBillingCatalogPriceInput = {
45
+ key: BillingCatalogKey;
46
+ revision: number;
47
+ unitAmount: number;
48
+ };
49
+ type SyncBillingCatalogPriceInput = {
50
+ key: BillingCatalogKey;
51
+ revision: number;
52
+ };
53
+
54
+ export type { BillingCatalogEntryType as B, PaidVendorBillingPeriod as P, SyncBillingCatalogPriceInput as S, UpdateBillingCatalogPriceInput as U, BillingCatalogDefinition as a, BillingCatalogInitialEntry as b, BillingCatalogKey as c, BillingCatalogPriceHistoryEntry as d, PaidVendorLicence as e };
@@ -0,0 +1,54 @@
1
+ import { EnumBillingPeriod, EnumUserLicence } from './enums/index.js';
2
+
3
+ type BillingCatalogKey = "pro_vendor_monthly" | "pro_vendor_yearly" | "pro_plus_vendor_monthly" | "pro_plus_vendor_yearly";
4
+ type BillingCatalogDefinition = {
5
+ billingPeriod: EnumBillingPeriod.MONTHLY_CANCEL_ANYTIME | EnumBillingPeriod.YEARLY_ANNUAL_BILLED;
6
+ licenceType: EnumUserLicence.PRO_VENDOR | EnumUserLicence.PRO_PLUS_VENDOR;
7
+ };
8
+ type PaidVendorLicence = BillingCatalogDefinition["licenceType"];
9
+ type PaidVendorBillingPeriod = BillingCatalogDefinition["billingPeriod"];
10
+ type BillingCatalogInitialEntry = BillingCatalogDefinition & {
11
+ active: boolean;
12
+ currency: "nzd";
13
+ key: BillingCatalogKey;
14
+ taxInclusive: boolean;
15
+ /** Price in the currency's smallest unit (NZD cents). */
16
+ unitAmount: number;
17
+ };
18
+ type BillingCatalogPriceHistoryEntry = {
19
+ changedAt: Date;
20
+ changedBy?: string | null;
21
+ currency: string;
22
+ effectiveFrom: Date;
23
+ effectiveTo: Date;
24
+ stripePriceId?: string | null;
25
+ stripeProductId?: string | null;
26
+ unitAmount: number;
27
+ };
28
+ type BillingCatalogEntryType = BillingCatalogDefinition & {
29
+ _id: string;
30
+ active: boolean;
31
+ createdAt: Date;
32
+ currency: string;
33
+ effectiveFrom: Date;
34
+ key: BillingCatalogKey;
35
+ priceHistory: BillingCatalogPriceHistoryEntry[];
36
+ revision: number;
37
+ stripePriceId?: string | null;
38
+ stripeProductId?: string | null;
39
+ taxInclusive: boolean;
40
+ unitAmount: number;
41
+ updatedAt: Date;
42
+ updatedBy?: string | null;
43
+ };
44
+ type UpdateBillingCatalogPriceInput = {
45
+ key: BillingCatalogKey;
46
+ revision: number;
47
+ unitAmount: number;
48
+ };
49
+ type SyncBillingCatalogPriceInput = {
50
+ key: BillingCatalogKey;
51
+ revision: number;
52
+ };
53
+
54
+ export type { BillingCatalogEntryType as B, PaidVendorBillingPeriod as P, SyncBillingCatalogPriceInput as S, UpdateBillingCatalogPriceInput as U, BillingCatalogDefinition as a, BillingCatalogInitialEntry as b, BillingCatalogKey as c, BillingCatalogPriceHistoryEntry as d, PaidVendorLicence as e };