@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.
- package/dist/{ad-BwfNEfvN.d.ts → ad-BX_Da-0Q.d.ts} +1 -1
- package/dist/{ad-CjiiPTke.d.mts → ad-MA6buSLw.d.mts} +1 -1
- package/dist/{affiliate-Ci9YSdAV.d.mts → affiliate-Cb8BLoQc.d.mts} +1 -1
- package/dist/{affiliate-B4e50Q65.d.ts → affiliate-DXpSgV4o.d.ts} +1 -1
- package/dist/auth/index.d.mts +2 -2
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.mjs +1 -1
- package/dist/billingCatalog-Bca0IZG_.d.mts +54 -0
- package/dist/billingCatalog-Rh9yvue3.d.ts +54 -0
- package/dist/{chunk-M3R2UY5Z.mjs → chunk-6VTX7IPF.mjs} +189 -137
- package/dist/chunk-6VTX7IPF.mjs.map +1 -0
- package/dist/{chunk-RCARDOVS.mjs → chunk-D3U4LBOQ.mjs} +88 -4
- package/dist/chunk-D3U4LBOQ.mjs.map +1 -0
- package/dist/{chunk-4BN6SNMF.mjs → chunk-JAIBL6IU.mjs} +2 -2
- package/dist/{chunk-DFAYHIEZ.mjs → chunk-JX7Q5EI4.mjs} +3 -3
- package/dist/{chunk-7IB7QPVH.mjs → chunk-P4NLBWEJ.mjs} +3 -3
- package/dist/chunk-P4NLBWEJ.mjs.map +1 -0
- package/dist/{chunk-364EX22V.mjs → chunk-TD52IH52.mjs} +1 -1
- package/dist/chunk-TD52IH52.mjs.map +1 -0
- package/dist/{chunk-2UNNIQIK.mjs → chunk-YRO6KEZG.mjs} +2 -2
- package/dist/enums/index.cjs +2 -2
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +3 -3
- package/dist/enums/index.d.ts +3 -3
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs +59 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +5 -5
- package/dist/graphql/index.cjs +191 -137
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +34 -22
- package/dist/graphql/index.d.ts +34 -22
- package/dist/graphql/index.mjs +8 -4
- package/dist/hooks/index.cjs +189 -92
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +7 -7
- package/dist/index.cjs +283 -139
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +106 -23
- package/dist/index.d.ts +106 -23
- package/dist/index.mjs +274 -138
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-C14qOL7_.d.ts → resourceActivities-CAr2chXT.d.ts} +1 -1
- package/dist/{resourceActivities-BDp-h5yH.d.mts → resourceActivities-e3GkUqTN.d.mts} +1 -1
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +5 -4
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.mjs +2 -2
- package/dist/{user-DzOlyCj5.d.mts → user-BTzwLwJl.d.mts} +0 -1
- package/dist/{user-BC4SpAj_.d.ts → user-D6Mt35k0.d.ts} +0 -1
- package/dist/utils/index.cjs +90 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +27 -4
- package/dist/utils/index.d.ts +27 -4
- package/dist/utils/index.mjs +16 -4
- package/package.json +1 -1
- package/dist/chunk-364EX22V.mjs.map +0 -1
- package/dist/chunk-7IB7QPVH.mjs.map +0 -1
- package/dist/chunk-M3R2UY5Z.mjs.map +0 -1
- package/dist/chunk-RCARDOVS.mjs.map +0 -1
- /package/dist/{chunk-4BN6SNMF.mjs.map → chunk-JAIBL6IU.mjs.map} +0 -0
- /package/dist/{chunk-DFAYHIEZ.mjs.map → chunk-JX7Q5EI4.mjs.map} +0 -0
- /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-
|
|
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-
|
|
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-
|
|
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-
|
|
3
|
+
import { e as UserFormData } from './user-D6Mt35k0.js';
|
|
4
4
|
|
|
5
5
|
declare enum EnumAffiliateParticipantType {
|
|
6
6
|
INDIVIDUAL = "INDIVIDUAL",
|
package/dist/auth/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EnumUserRole, EnumResourceType, EnumUserLicence } from '../enums/index.mjs';
|
|
2
|
-
import { P as Permission, S as SafeUserType } from '../user-
|
|
3
|
-
export { a as PERMISSIONS, W as WILDCARD_PERMISSION } from '../user-
|
|
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';
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EnumUserRole, EnumResourceType, EnumUserLicence } from '../enums/index.js';
|
|
2
|
-
import { P as Permission, S as SafeUserType } from '../user-
|
|
3
|
-
export { a as PERMISSIONS, W as WILDCARD_PERMISSION } from '../user-
|
|
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';
|
package/dist/auth/index.mjs
CHANGED
|
@@ -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 };
|