@polar-sh/sdk 0.8.1 → 0.9.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.
- package/README.md +7 -6
- package/docs/sdks/products/README.md +2 -2
- package/funcs/advertisementsList.js +2 -2
- package/funcs/advertisementsList.js.map +1 -1
- package/funcs/articlesList.js +2 -2
- package/funcs/articlesList.js.map +1 -1
- package/funcs/benefitsGrants.js +2 -2
- package/funcs/benefitsGrants.js.map +1 -1
- package/funcs/benefitsList.js +2 -2
- package/funcs/benefitsList.js.map +1 -1
- package/funcs/externalOrganizationsList.js +2 -2
- package/funcs/externalOrganizationsList.js.map +1 -1
- package/funcs/filesList.js +2 -2
- package/funcs/filesList.js.map +1 -1
- package/funcs/licenseKeysList.js +2 -2
- package/funcs/licenseKeysList.js.map +1 -1
- package/funcs/oauth2ClientsList.js +2 -2
- package/funcs/oauth2ClientsList.js.map +1 -1
- package/funcs/ordersList.js +2 -2
- package/funcs/ordersList.js.map +1 -1
- package/funcs/organizationsList.js +2 -2
- package/funcs/organizationsList.js.map +1 -1
- package/funcs/productsList.js +2 -2
- package/funcs/productsList.js.map +1 -1
- package/funcs/repositoriesList.js +2 -2
- package/funcs/repositoriesList.js.map +1 -1
- package/funcs/subscriptionsList.js +2 -2
- package/funcs/subscriptionsList.js.map +1 -1
- package/funcs/usersAdvertisementsList.js +2 -2
- package/funcs/usersAdvertisementsList.js.map +1 -1
- package/funcs/usersBenefitsList.js +2 -2
- package/funcs/usersBenefitsList.js.map +1 -1
- package/funcs/usersDownloadablesList.js +2 -2
- package/funcs/usersDownloadablesList.js.map +1 -1
- package/funcs/usersLicenseKeysList.js +2 -2
- package/funcs/usersLicenseKeysList.js.map +1 -1
- package/funcs/usersOrdersList.js +2 -2
- package/funcs/usersOrdersList.js.map +1 -1
- package/funcs/usersSubscriptionsList.js +2 -2
- package/funcs/usersSubscriptionsList.js.map +1 -1
- package/lib/config.d.ts +16 -5
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +18 -12
- package/lib/config.js.map +1 -1
- package/models/components/bodysubscriptionsimport.d.ts +2 -2
- package/models/components/bodysubscriptionsimport.d.ts.map +1 -1
- package/models/components/bodysubscriptionsimport.js +2 -0
- package/models/components/bodysubscriptionsimport.js.map +1 -1
- package/models/components/index.d.ts +9 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +9 -3
- package/models/components/index.js.map +1 -1
- package/models/components/ordersubscription.d.ts +7 -0
- package/models/components/ordersubscription.d.ts.map +1 -1
- package/models/components/ordersubscription.js +9 -0
- package/models/components/ordersubscription.js.map +1 -1
- package/models/components/organizationfeaturesettings.d.ts +0 -5
- package/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/models/components/organizationfeaturesettings.js +0 -4
- package/models/components/organizationfeaturesettings.js.map +1 -1
- package/models/components/organizationprofilesettings.d.ts +10 -0
- package/models/components/organizationprofilesettings.d.ts.map +1 -1
- package/models/components/organizationprofilesettings.js +6 -0
- package/models/components/organizationprofilesettings.js.map +1 -1
- package/models/components/productonetimecreate.d.ts +23 -3
- package/models/components/productonetimecreate.d.ts.map +1 -1
- package/models/components/productonetimecreate.js +33 -4
- package/models/components/productonetimecreate.js.map +1 -1
- package/models/components/productpriceinput.d.ts +3 -11
- package/models/components/productpriceinput.d.ts.map +1 -1
- package/models/components/productpriceinput.js +5 -13
- package/models/components/productpriceinput.js.map +1 -1
- package/models/components/productpriceonetime.d.ts +4 -71
- package/models/components/productpriceonetime.d.ts.map +1 -1
- package/models/components/productpriceonetime.js +11 -57
- package/models/components/productpriceonetime.js.map +1 -1
- package/models/components/productpriceonetimecustom.d.ts +124 -0
- package/models/components/productpriceonetimecustom.d.ts.map +1 -0
- package/models/components/productpriceonetimecustom.js +130 -0
- package/models/components/productpriceonetimecustom.js.map +1 -0
- package/models/components/productpriceonetimecustomcreate.d.ts +71 -0
- package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -0
- package/models/components/productpriceonetimecustomcreate.js +91 -0
- package/models/components/productpriceonetimecustomcreate.js.map +1 -0
- package/models/components/productpriceonetimefixed.d.ts +114 -0
- package/models/components/productpriceonetimefixed.d.ts.map +1 -0
- package/models/components/productpriceonetimefixed.js +122 -0
- package/models/components/productpriceonetimefixed.js.map +1 -0
- package/models/components/productpriceonetimefixedcreate.d.ts +61 -0
- package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -0
- package/models/components/{productpriceonetimecreate.js → productpriceonetimefixedcreate.js} +25 -25
- package/models/components/productpriceonetimefixedcreate.js.map +1 -0
- package/models/components/productpriceoutput.d.ts +3 -11
- package/models/components/productpriceoutput.d.ts.map +1 -1
- package/models/components/productpriceoutput.js +5 -13
- package/models/components/productpriceoutput.js.map +1 -1
- package/models/components/productpricerecurringcreate.d.ts +7 -7
- package/models/components/productpricerecurringcreate.d.ts.map +1 -1
- package/models/components/productpricerecurringcreate.js +9 -9
- package/models/components/productpricerecurringcreate.js.map +1 -1
- package/models/components/productpricerecurringcustom.d.ts +130 -0
- package/models/components/productpricerecurringcustom.d.ts.map +1 -0
- package/models/components/productpricerecurringcustom.js +135 -0
- package/models/components/productpricerecurringcustom.js.map +1 -0
- package/models/components/productpricerecurringfixed.d.ts +120 -0
- package/models/components/productpricerecurringfixed.d.ts.map +1 -0
- package/models/components/productpricerecurringfixed.js +128 -0
- package/models/components/productpricerecurringfixed.js.map +1 -0
- package/models/components/productpricerecurringinput.d.ts +31 -0
- package/models/components/productpricerecurringinput.d.ts.map +1 -0
- package/models/components/productpricerecurringinput.js +62 -0
- package/models/components/productpricerecurringinput.js.map +1 -0
- package/models/components/productpricerecurringoutput.d.ts +31 -0
- package/models/components/productpricerecurringoutput.d.ts.map +1 -0
- package/models/components/productpricerecurringoutput.js +62 -0
- package/models/components/productpricerecurringoutput.js.map +1 -0
- package/models/components/productupdate.d.ts +15 -14
- package/models/components/productupdate.d.ts.map +1 -1
- package/models/components/productupdate.js +20 -16
- package/models/components/productupdate.js.map +1 -1
- package/models/components/subscriptioninput.d.ts +7 -0
- package/models/components/subscriptioninput.d.ts.map +1 -1
- package/models/components/subscriptioninput.js +9 -0
- package/models/components/subscriptioninput.js.map +1 -1
- package/models/components/subscriptionoutput.d.ts +7 -0
- package/models/components/subscriptionoutput.d.ts.map +1 -1
- package/models/components/subscriptionoutput.js +9 -0
- package/models/components/subscriptionoutput.js.map +1 -1
- package/models/components/subscriptionrecurringinterval.d.ts +28 -0
- package/models/components/{productpricerecurringinterval.d.ts.map → subscriptionrecurringinterval.d.ts.map} +1 -1
- package/models/components/{productpricerecurringinterval.js → subscriptionrecurringinterval.js} +12 -12
- package/models/components/{productpricerecurringinterval.js.map → subscriptionrecurringinterval.js.map} +1 -1
- package/models/components/subscriptionsortproperty.d.ts +6 -6
- package/models/components/subscriptionsortproperty.js +2 -2
- package/models/components/subscriptionsortproperty.js.map +1 -1
- package/models/components/userordersubscription.d.ts +7 -0
- package/models/components/userordersubscription.d.ts.map +1 -1
- package/models/components/userordersubscription.js +9 -0
- package/models/components/userordersubscription.js.map +1 -1
- package/models/components/usersubscription.d.ts +10 -0
- package/models/components/usersubscription.d.ts.map +1 -1
- package/models/components/usersubscription.js +9 -0
- package/models/components/usersubscription.js.map +1 -1
- package/models/components/usersubscriptionsortproperty.d.ts +6 -6
- package/models/components/usersubscriptionsortproperty.js +2 -2
- package/models/components/usersubscriptionsortproperty.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/advertisementsList.ts +2 -2
- package/src/funcs/articlesList.ts +2 -2
- package/src/funcs/benefitsGrants.ts +2 -2
- package/src/funcs/benefitsList.ts +2 -2
- package/src/funcs/externalOrganizationsList.ts +2 -2
- package/src/funcs/filesList.ts +2 -2
- package/src/funcs/licenseKeysList.ts +2 -2
- package/src/funcs/oauth2ClientsList.ts +2 -2
- package/src/funcs/ordersList.ts +2 -2
- package/src/funcs/organizationsList.ts +2 -2
- package/src/funcs/productsList.ts +2 -2
- package/src/funcs/repositoriesList.ts +2 -2
- package/src/funcs/subscriptionsList.ts +2 -2
- package/src/funcs/usersAdvertisementsList.ts +2 -2
- package/src/funcs/usersBenefitsList.ts +2 -2
- package/src/funcs/usersDownloadablesList.ts +2 -2
- package/src/funcs/usersLicenseKeysList.ts +2 -2
- package/src/funcs/usersOrdersList.ts +2 -2
- package/src/funcs/usersSubscriptionsList.ts +2 -2
- package/src/lib/config.ts +18 -12
- package/src/models/components/bodysubscriptionsimport.ts +4 -2
- package/src/models/components/index.ts +9 -3
- package/src/models/components/ordersubscription.ts +19 -0
- package/src/models/components/organizationfeaturesettings.ts +0 -9
- package/src/models/components/organizationprofilesettings.ts +16 -0
- package/src/models/components/productonetimecreate.ts +69 -9
- package/src/models/components/productpriceinput.ts +13 -29
- package/src/models/components/productpriceonetime.ts +27 -115
- package/src/models/components/productpriceonetimecustom.ts +201 -0
- package/src/models/components/productpriceonetimecustomcreate.ts +122 -0
- package/src/models/components/productpriceonetimefixed.ts +182 -0
- package/src/models/components/productpriceonetimefixedcreate.ts +103 -0
- package/src/models/components/productpriceoutput.ts +13 -29
- package/src/models/components/productpricerecurringcreate.ts +18 -18
- package/src/models/components/productpricerecurringcustom.ts +216 -0
- package/src/models/components/productpricerecurringfixed.ts +191 -0
- package/src/models/components/productpricerecurringinput.ts +75 -0
- package/src/models/components/productpricerecurringoutput.ts +75 -0
- package/src/models/components/productupdate.ts +49 -32
- package/src/models/components/subscriptioninput.ts +19 -0
- package/src/models/components/subscriptionoutput.ts +19 -0
- package/src/models/components/subscriptionrecurringinterval.ts +35 -0
- package/src/models/components/subscriptionsortproperty.ts +2 -2
- package/src/models/components/userordersubscription.ts +19 -0
- package/src/models/components/usersubscription.ts +22 -0
- package/src/models/components/usersubscriptionsortproperty.ts +2 -2
- package/models/components/productpriceonetimecreate.d.ts +0 -61
- package/models/components/productpriceonetimecreate.d.ts.map +0 -1
- package/models/components/productpriceonetimecreate.js.map +0 -1
- package/models/components/productpricerecurring.d.ts +0 -96
- package/models/components/productpricerecurring.d.ts.map +0 -1
- package/models/components/productpricerecurring.js +0 -105
- package/models/components/productpricerecurring.js.map +0 -1
- package/models/components/productpricerecurringinterval.d.ts +0 -28
- package/src/models/components/productpriceonetimecreate.ts +0 -102
- package/src/models/components/productpricerecurring.ts +0 -161
- package/src/models/components/productpricerecurringinterval.ts +0 -35
|
@@ -4,10 +4,6 @@ export type OrganizationFeatureSettings = {
|
|
|
4
4
|
* If this organization has articles enabled
|
|
5
5
|
*/
|
|
6
6
|
articlesEnabled?: boolean | undefined;
|
|
7
|
-
/**
|
|
8
|
-
* If this organization has subscriptions enabled
|
|
9
|
-
*/
|
|
10
|
-
subscriptionsEnabled?: boolean | undefined;
|
|
11
7
|
/**
|
|
12
8
|
* If this organization has issue funding enabled
|
|
13
9
|
*/
|
|
@@ -18,7 +14,6 @@ export declare const OrganizationFeatureSettings$inboundSchema: z.ZodType<Organi
|
|
|
18
14
|
/** @internal */
|
|
19
15
|
export type OrganizationFeatureSettings$Outbound = {
|
|
20
16
|
articles_enabled: boolean;
|
|
21
|
-
subscriptions_enabled: boolean;
|
|
22
17
|
issue_funding_enabled: boolean;
|
|
23
18
|
};
|
|
24
19
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationfeaturesettings.d.ts","sourceRoot":"","sources":["../../src/models/components/organizationfeaturesettings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"organizationfeaturesettings.d.ts","sourceRoot":"","sources":["../../src/models/components/organizationfeaturesettings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAS3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
|
|
@@ -32,24 +32,20 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
32
32
|
/** @internal */
|
|
33
33
|
exports.OrganizationFeatureSettings$inboundSchema = z.object({
|
|
34
34
|
articles_enabled: z.boolean().default(false),
|
|
35
|
-
subscriptions_enabled: z.boolean().default(false),
|
|
36
35
|
issue_funding_enabled: z.boolean().default(false),
|
|
37
36
|
}).transform((v) => {
|
|
38
37
|
return (0, primitives_js_1.remap)(v, {
|
|
39
38
|
"articles_enabled": "articlesEnabled",
|
|
40
|
-
"subscriptions_enabled": "subscriptionsEnabled",
|
|
41
39
|
"issue_funding_enabled": "issueFundingEnabled",
|
|
42
40
|
});
|
|
43
41
|
});
|
|
44
42
|
/** @internal */
|
|
45
43
|
exports.OrganizationFeatureSettings$outboundSchema = z.object({
|
|
46
44
|
articlesEnabled: z.boolean().default(false),
|
|
47
|
-
subscriptionsEnabled: z.boolean().default(false),
|
|
48
45
|
issueFundingEnabled: z.boolean().default(false),
|
|
49
46
|
}).transform((v) => {
|
|
50
47
|
return (0, primitives_js_1.remap)(v, {
|
|
51
48
|
articlesEnabled: "articles_enabled",
|
|
52
|
-
subscriptionsEnabled: "subscriptions_enabled",
|
|
53
49
|
issueFundingEnabled: "issue_funding_enabled",
|
|
54
50
|
});
|
|
55
51
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationfeaturesettings.js","sourceRoot":"","sources":["../../src/models/components/organizationfeaturesettings.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;
|
|
1
|
+
{"version":3,"file":"organizationfeaturesettings.js","sourceRoot":"","sources":["../../src/models/components/organizationfeaturesettings.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAa1D,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5C,qBAAqB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CAClD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,iBAAiB;QACrC,uBAAuB,EAAE,qBAAqB;KAC/C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC3C,mBAAmB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,kBAAkB;QACnC,mBAAmB,EAAE,uBAAuB;KAC7C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { OrganizationSubscribePromoteSettings, OrganizationSubscribePromoteSettings$Outbound } from "./organizationsubscribepromotesettings.js";
|
|
3
3
|
export type OrganizationProfileSettings = {
|
|
4
|
+
/**
|
|
5
|
+
* If this organization has a profile enabled
|
|
6
|
+
*/
|
|
7
|
+
enabled?: boolean | null | undefined;
|
|
4
8
|
/**
|
|
5
9
|
* A description of the organization
|
|
6
10
|
*/
|
|
@@ -21,16 +25,22 @@ export type OrganizationProfileSettings = {
|
|
|
21
25
|
* Subscription promotion settings
|
|
22
26
|
*/
|
|
23
27
|
subscribe?: OrganizationSubscribePromoteSettings | null | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Accent color for the organization
|
|
30
|
+
*/
|
|
31
|
+
accentColor?: string | null | undefined;
|
|
24
32
|
};
|
|
25
33
|
/** @internal */
|
|
26
34
|
export declare const OrganizationProfileSettings$inboundSchema: z.ZodType<OrganizationProfileSettings, z.ZodTypeDef, unknown>;
|
|
27
35
|
/** @internal */
|
|
28
36
|
export type OrganizationProfileSettings$Outbound = {
|
|
37
|
+
enabled?: boolean | null | undefined;
|
|
29
38
|
description?: string | null | undefined;
|
|
30
39
|
featured_projects?: Array<string> | null | undefined;
|
|
31
40
|
featured_organizations?: Array<string> | null | undefined;
|
|
32
41
|
links?: Array<string> | null | undefined;
|
|
33
42
|
subscribe?: OrganizationSubscribePromoteSettings$Outbound | null | undefined;
|
|
43
|
+
accent_color?: string | null | undefined;
|
|
34
44
|
};
|
|
35
45
|
/** @internal */
|
|
36
46
|
export declare const OrganizationProfileSettings$outboundSchema: z.ZodType<OrganizationProfileSettings$Outbound, z.ZodTypeDef, OrganizationProfileSettings>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationprofilesettings.d.ts","sourceRoot":"","sources":["../../src/models/components/organizationprofilesettings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,oCAAoC,EAEpC,6CAA6C,EAE9C,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD;;OAEG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACzD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,SAAS,CAAC,EAAE,oCAAoC,GAAG,IAAI,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"organizationprofilesettings.d.ts","sourceRoot":"","sources":["../../src/models/components/organizationprofilesettings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,oCAAoC,EAEpC,6CAA6C,EAE9C,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SA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,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAgB3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
|
|
@@ -32,30 +32,36 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
32
32
|
const organizationsubscribepromotesettings_js_1 = require("./organizationsubscribepromotesettings.js");
|
|
33
33
|
/** @internal */
|
|
34
34
|
exports.OrganizationProfileSettings$inboundSchema = z.object({
|
|
35
|
+
enabled: z.nullable(z.boolean()).optional(),
|
|
35
36
|
description: z.nullable(z.string()).optional(),
|
|
36
37
|
featured_projects: z.nullable(z.array(z.string())).optional(),
|
|
37
38
|
featured_organizations: z.nullable(z.array(z.string())).optional(),
|
|
38
39
|
links: z.nullable(z.array(z.string())).optional(),
|
|
39
40
|
subscribe: z.nullable(organizationsubscribepromotesettings_js_1.OrganizationSubscribePromoteSettings$inboundSchema)
|
|
40
41
|
.optional(),
|
|
42
|
+
accent_color: z.nullable(z.string()).optional(),
|
|
41
43
|
}).transform((v) => {
|
|
42
44
|
return (0, primitives_js_1.remap)(v, {
|
|
43
45
|
"featured_projects": "featuredProjects",
|
|
44
46
|
"featured_organizations": "featuredOrganizations",
|
|
47
|
+
"accent_color": "accentColor",
|
|
45
48
|
});
|
|
46
49
|
});
|
|
47
50
|
/** @internal */
|
|
48
51
|
exports.OrganizationProfileSettings$outboundSchema = z.object({
|
|
52
|
+
enabled: z.nullable(z.boolean()).optional(),
|
|
49
53
|
description: z.nullable(z.string()).optional(),
|
|
50
54
|
featuredProjects: z.nullable(z.array(z.string())).optional(),
|
|
51
55
|
featuredOrganizations: z.nullable(z.array(z.string())).optional(),
|
|
52
56
|
links: z.nullable(z.array(z.string())).optional(),
|
|
53
57
|
subscribe: z.nullable(organizationsubscribepromotesettings_js_1.OrganizationSubscribePromoteSettings$outboundSchema)
|
|
54
58
|
.optional(),
|
|
59
|
+
accentColor: z.nullable(z.string()).optional(),
|
|
55
60
|
}).transform((v) => {
|
|
56
61
|
return (0, primitives_js_1.remap)(v, {
|
|
57
62
|
featuredProjects: "featured_projects",
|
|
58
63
|
featuredOrganizations: "featured_organizations",
|
|
64
|
+
accentColor: "accent_color",
|
|
59
65
|
});
|
|
60
66
|
});
|
|
61
67
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationprofilesettings.js","sourceRoot":"","sources":["../../src/models/components/organizationprofilesettings.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,uGAKmD;
|
|
1
|
+
{"version":3,"file":"organizationprofilesettings.js","sourceRoot":"","sources":["../../src/models/components/organizationprofilesettings.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,uGAKmD;AAiCnD,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC7D,sBAAsB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,Q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AW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,mBAAmB;QACrC,qBAAqB,EAAE,wBAAwB;QAC/C,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { ProductPriceOneTimeCustomCreate, ProductPriceOneTimeCustomCreate$Outbound } from "./productpriceonetimecustomcreate.js";
|
|
3
|
+
import { ProductPriceOneTimeFixedCreate, ProductPriceOneTimeFixedCreate$Outbound } from "./productpriceonetimefixedcreate.js";
|
|
4
|
+
export type Prices = ProductPriceOneTimeFixedCreate | ProductPriceOneTimeCustomCreate;
|
|
3
5
|
/**
|
|
4
6
|
* Schema to create a one-time product.
|
|
5
7
|
*/
|
|
@@ -15,7 +17,7 @@ export type ProductOneTimeCreate = {
|
|
|
15
17
|
/**
|
|
16
18
|
* List of available prices for this product.
|
|
17
19
|
*/
|
|
18
|
-
prices: Array<
|
|
20
|
+
prices: Array<ProductPriceOneTimeFixedCreate | ProductPriceOneTimeCustomCreate>;
|
|
19
21
|
/**
|
|
20
22
|
* List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
|
|
21
23
|
*/
|
|
@@ -26,12 +28,30 @@ export type ProductOneTimeCreate = {
|
|
|
26
28
|
organizationId?: string | null | undefined;
|
|
27
29
|
};
|
|
28
30
|
/** @internal */
|
|
31
|
+
export declare const Prices$inboundSchema: z.ZodType<Prices, z.ZodTypeDef, unknown>;
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type Prices$Outbound = ProductPriceOneTimeFixedCreate$Outbound | ProductPriceOneTimeCustomCreate$Outbound;
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const Prices$outboundSchema: z.ZodType<Prices$Outbound, z.ZodTypeDef, Prices>;
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
39
|
+
*/
|
|
40
|
+
export declare namespace Prices$ {
|
|
41
|
+
/** @deprecated use `Prices$inboundSchema` instead. */
|
|
42
|
+
const inboundSchema: z.ZodType<Prices, z.ZodTypeDef, unknown>;
|
|
43
|
+
/** @deprecated use `Prices$outboundSchema` instead. */
|
|
44
|
+
const outboundSchema: z.ZodType<Prices$Outbound, z.ZodTypeDef, Prices>;
|
|
45
|
+
/** @deprecated use `Prices$Outbound` instead. */
|
|
46
|
+
type Outbound = Prices$Outbound;
|
|
47
|
+
}
|
|
48
|
+
/** @internal */
|
|
29
49
|
export declare const ProductOneTimeCreate$inboundSchema: z.ZodType<ProductOneTimeCreate, z.ZodTypeDef, unknown>;
|
|
30
50
|
/** @internal */
|
|
31
51
|
export type ProductOneTimeCreate$Outbound = {
|
|
32
52
|
name: string;
|
|
33
53
|
description?: string | null | undefined;
|
|
34
|
-
prices: Array<
|
|
54
|
+
prices: Array<ProductPriceOneTimeFixedCreate$Outbound | ProductPriceOneTimeCustomCreate$Outbound>;
|
|
35
55
|
medias?: Array<string> | null | undefined;
|
|
36
56
|
organization_id?: string | null | undefined;
|
|
37
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productonetimecreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productonetimecreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"productonetimecreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productonetimecreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,8BAA8B,EAE9B,uCAAuC,EAExC,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,MAAM,GACd,8BAA8B,GAC9B,+BAA+B,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,MAAM,EAAE,KAAK,CACX,8BAA8B,GAAG,+BAA+B,CACjE,CAAC;IACF;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAItE,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,eAAe,GACvB,uCAAuC,GACvC,wCAAwC,CAAC;AAE7C,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAC3C,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,MAAM,CAIN,CAAC;AAEH;;;GAGG;AACH,yBAAiB,OAAO,CAAC;IACvB,sDAAsD;IAC/C,MAAM,aAAa,0CAAuB,CAAC;IAClD,uDAAuD;IAChD,MAAM,cAAc,kDAAwB,CAAC;IACpD,iDAAiD;IACjD,KAAY,QAAQ,GAAG,eAAe,CAAC;CACxC;AAED,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,MAAM,EAAE,KAAK,CACT,uCAAuC,GACvC,wCAAwC,CAC3C,CAAC;IACF,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAgBpB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD"}
|
|
@@ -26,15 +26,41 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ProductOneTimeCreate$ = exports.ProductOneTimeCreate$outboundSchema = exports.ProductOneTimeCreate$inboundSchema = void 0;
|
|
29
|
+
exports.ProductOneTimeCreate$ = exports.ProductOneTimeCreate$outboundSchema = exports.ProductOneTimeCreate$inboundSchema = exports.Prices$ = exports.Prices$outboundSchema = exports.Prices$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
|
-
const
|
|
32
|
+
const productpriceonetimecustomcreate_js_1 = require("./productpriceonetimecustomcreate.js");
|
|
33
|
+
const productpriceonetimefixedcreate_js_1 = require("./productpriceonetimefixedcreate.js");
|
|
34
|
+
/** @internal */
|
|
35
|
+
exports.Prices$inboundSchema = z
|
|
36
|
+
.union([
|
|
37
|
+
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$inboundSchema,
|
|
38
|
+
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$inboundSchema,
|
|
39
|
+
]);
|
|
40
|
+
/** @internal */
|
|
41
|
+
exports.Prices$outboundSchema = z.union([
|
|
42
|
+
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$outboundSchema,
|
|
43
|
+
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$outboundSchema,
|
|
44
|
+
]);
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
var Prices$;
|
|
50
|
+
(function (Prices$) {
|
|
51
|
+
/** @deprecated use `Prices$inboundSchema` instead. */
|
|
52
|
+
Prices$.inboundSchema = exports.Prices$inboundSchema;
|
|
53
|
+
/** @deprecated use `Prices$outboundSchema` instead. */
|
|
54
|
+
Prices$.outboundSchema = exports.Prices$outboundSchema;
|
|
55
|
+
})(Prices$ || (exports.Prices$ = Prices$ = {}));
|
|
33
56
|
/** @internal */
|
|
34
57
|
exports.ProductOneTimeCreate$inboundSchema = z.object({
|
|
35
58
|
name: z.string(),
|
|
36
59
|
description: z.nullable(z.string()).optional(),
|
|
37
|
-
prices: z.array(
|
|
60
|
+
prices: z.array(z.union([
|
|
61
|
+
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$inboundSchema,
|
|
62
|
+
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$inboundSchema,
|
|
63
|
+
])),
|
|
38
64
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
39
65
|
organization_id: z.nullable(z.string()).optional(),
|
|
40
66
|
}).transform((v) => {
|
|
@@ -46,7 +72,10 @@ exports.ProductOneTimeCreate$inboundSchema = z.object({
|
|
|
46
72
|
exports.ProductOneTimeCreate$outboundSchema = z.object({
|
|
47
73
|
name: z.string(),
|
|
48
74
|
description: z.nullable(z.string()).optional(),
|
|
49
|
-
prices: z.array(
|
|
75
|
+
prices: z.array(z.union([
|
|
76
|
+
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$outboundSchema,
|
|
77
|
+
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$outboundSchema,
|
|
78
|
+
])),
|
|
50
79
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
51
80
|
organizationId: z.nullable(z.string()).optional(),
|
|
52
81
|
}).transform((v) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productonetimecreate.js","sourceRoot":"","sources":["../../src/models/components/productonetimecreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"productonetimecreate.js","sourceRoot":"","sources":["../../src/models/components/productonetimecreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,6FAK8C;AAC9C,2FAK6C;AAkC7C,gBAAgB;AACH,QAAA,oBAAoB,GAA6C,CAAC;KAC5E,KAAK,CAAC;IACL,gFAA4C;IAC5C,kFAA6C;CAC9C,CAAC,CAAC;AAOL,gBAAgB;AACH,QAAA,qBAAqB,GAI9B,CAAC,CAAC,KAAK,CAAC;IACV,iFAA6C;IAC7C,mFA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D,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClD,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC"}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ProductPriceOneTime, ProductPriceOneTime$Outbound } from "./productpriceonetime.js";
|
|
3
|
-
import {
|
|
4
|
-
export type ProductPriceInput =
|
|
5
|
-
type: "one_time";
|
|
6
|
-
}) | (ProductPriceRecurring & {
|
|
7
|
-
type: "recurring";
|
|
8
|
-
});
|
|
3
|
+
import { ProductPriceRecurringInput, ProductPriceRecurringInput$Outbound } from "./productpricerecurringinput.js";
|
|
4
|
+
export type ProductPriceInput = ProductPriceRecurringInput | ProductPriceOneTime;
|
|
9
5
|
/** @internal */
|
|
10
6
|
export declare const ProductPriceInput$inboundSchema: z.ZodType<ProductPriceInput, z.ZodTypeDef, unknown>;
|
|
11
7
|
/** @internal */
|
|
12
|
-
export type ProductPriceInput$Outbound =
|
|
13
|
-
type: "one_time";
|
|
14
|
-
}) | (ProductPriceRecurring$Outbound & {
|
|
15
|
-
type: "recurring";
|
|
16
|
-
});
|
|
8
|
+
export type ProductPriceInput$Outbound = ProductPriceRecurringInput$Outbound | ProductPriceOneTime$Outbound;
|
|
17
9
|
/** @internal */
|
|
18
10
|
export declare const ProductPriceInput$outboundSchema: z.ZodType<ProductPriceInput$Outbound, z.ZodTypeDef, ProductPriceInput>;
|
|
19
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productpriceinput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"productpriceinput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,iBAAiB,GACzB,0BAA0B,GAC1B,mBAAmB,CAAC;AAExB,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAClC,mCAAmC,GACnC,4BAA4B,CAAC;AAEjC,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAIjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD"}
|
|
@@ -29,24 +29,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.ProductPriceInput$ = exports.ProductPriceInput$outboundSchema = exports.ProductPriceInput$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const productpriceonetime_js_1 = require("./productpriceonetime.js");
|
|
32
|
-
const
|
|
32
|
+
const productpricerecurringinput_js_1 = require("./productpricerecurringinput.js");
|
|
33
33
|
/** @internal */
|
|
34
34
|
exports.ProductPriceInput$inboundSchema = z.union([
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}))),
|
|
38
|
-
productpricerecurring_js_1.ProductPriceRecurring$inboundSchema.and(z.object({ type: z.literal("recurring") }).transform((v) => ({
|
|
39
|
-
type: v.type,
|
|
40
|
-
}))),
|
|
35
|
+
productpricerecurringinput_js_1.ProductPriceRecurringInput$inboundSchema,
|
|
36
|
+
productpriceonetime_js_1.ProductPriceOneTime$inboundSchema,
|
|
41
37
|
]);
|
|
42
38
|
/** @internal */
|
|
43
39
|
exports.ProductPriceInput$outboundSchema = z.union([
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}))),
|
|
47
|
-
productpricerecurring_js_1.ProductPriceRecurring$outboundSchema.and(z.object({ type: z.literal("recurring") }).transform((v) => ({
|
|
48
|
-
type: v.type,
|
|
49
|
-
}))),
|
|
40
|
+
productpricerecurringinput_js_1.ProductPriceRecurringInput$outboundSchema,
|
|
41
|
+
productpriceonetime_js_1.ProductPriceOneTime$outboundSchema,
|
|
50
42
|
]);
|
|
51
43
|
/**
|
|
52
44
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productpriceinput.js","sourceRoot":"","sources":["../../src/models/components/productpriceinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qEAKkC;AAClC,
|
|
1
|
+
{"version":3,"file":"productpriceinput.js","sourceRoot":"","sources":["../../src/models/components/productpriceinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qEAKkC;AAClC,mFAKyC;AAMzC,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,KAAK,CAAC;IACV,wEAAwC;IACxC,0DAAiC;CAClC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,KAAK,CAAC;IACV,yEAAyC;IACzC,2DAAkC;CACnC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC"}
|
|
@@ -1,78 +1,11 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
export declare const ProductPriceOneTimeType: {
|
|
7
|
-
readonly OneTime: "one_time";
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* The type of the price.
|
|
11
|
-
*/
|
|
12
|
-
export type ProductPriceOneTimeType = ClosedEnum<typeof ProductPriceOneTimeType>;
|
|
13
|
-
/**
|
|
14
|
-
* A one-time price for a product.
|
|
15
|
-
*/
|
|
16
|
-
export type ProductPriceOneTime = {
|
|
17
|
-
/**
|
|
18
|
-
* Creation timestamp of the object.
|
|
19
|
-
*/
|
|
20
|
-
createdAt: Date;
|
|
21
|
-
/**
|
|
22
|
-
* Last modification timestamp of the object.
|
|
23
|
-
*/
|
|
24
|
-
modifiedAt: Date | null;
|
|
25
|
-
/**
|
|
26
|
-
* The ID of the price.
|
|
27
|
-
*/
|
|
28
|
-
id: string;
|
|
29
|
-
/**
|
|
30
|
-
* The price in cents.
|
|
31
|
-
*/
|
|
32
|
-
priceAmount: number;
|
|
33
|
-
/**
|
|
34
|
-
* The currency.
|
|
35
|
-
*/
|
|
36
|
-
priceCurrency: string;
|
|
37
|
-
/**
|
|
38
|
-
* Whether the price is archived and no longer available.
|
|
39
|
-
*/
|
|
40
|
-
isArchived: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* The type of the price.
|
|
43
|
-
*/
|
|
44
|
-
type?: "one_time" | undefined;
|
|
45
|
-
};
|
|
46
|
-
/** @internal */
|
|
47
|
-
export declare const ProductPriceOneTimeType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeType>;
|
|
48
|
-
/** @internal */
|
|
49
|
-
export declare const ProductPriceOneTimeType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeType>;
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
export declare namespace ProductPriceOneTimeType$ {
|
|
55
|
-
/** @deprecated use `ProductPriceOneTimeType$inboundSchema` instead. */
|
|
56
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
57
|
-
readonly OneTime: "one_time";
|
|
58
|
-
}>;
|
|
59
|
-
/** @deprecated use `ProductPriceOneTimeType$outboundSchema` instead. */
|
|
60
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
61
|
-
readonly OneTime: "one_time";
|
|
62
|
-
}>;
|
|
63
|
-
}
|
|
2
|
+
import { ProductPriceOneTimeCustom, ProductPriceOneTimeCustom$Outbound } from "./productpriceonetimecustom.js";
|
|
3
|
+
import { ProductPriceOneTimeFixed, ProductPriceOneTimeFixed$Outbound } from "./productpriceonetimefixed.js";
|
|
4
|
+
export type ProductPriceOneTime = ProductPriceOneTimeFixed | ProductPriceOneTimeCustom;
|
|
64
5
|
/** @internal */
|
|
65
6
|
export declare const ProductPriceOneTime$inboundSchema: z.ZodType<ProductPriceOneTime, z.ZodTypeDef, unknown>;
|
|
66
7
|
/** @internal */
|
|
67
|
-
export type ProductPriceOneTime$Outbound =
|
|
68
|
-
created_at: string;
|
|
69
|
-
modified_at: string | null;
|
|
70
|
-
id: string;
|
|
71
|
-
price_amount: number;
|
|
72
|
-
price_currency: string;
|
|
73
|
-
is_archived: boolean;
|
|
74
|
-
type: "one_time";
|
|
75
|
-
};
|
|
8
|
+
export type ProductPriceOneTime$Outbound = ProductPriceOneTimeFixed$Outbound | ProductPriceOneTimeCustom$Outbound;
|
|
76
9
|
/** @internal */
|
|
77
10
|
export declare const ProductPriceOneTime$outboundSchema: z.ZodType<ProductPriceOneTime$Outbound, z.ZodTypeDef, ProductPriceOneTime>;
|
|
78
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productpriceonetime.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetime.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"productpriceonetime.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetime.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EAExB,iCAAiC,EAElC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,mBAAmB,GAC3B,wBAAwB,GACxB,yBAAyB,CAAC;AAE9B,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GACpC,iCAAiC,GACjC,kCAAkC,CAAC;AAEvC,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAInB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD"}
|
|
@@ -26,66 +26,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ProductPriceOneTime$ = exports.ProductPriceOneTime$outboundSchema = exports.ProductPriceOneTime$inboundSchema =
|
|
29
|
+
exports.ProductPriceOneTime$ = exports.ProductPriceOneTime$outboundSchema = exports.ProductPriceOneTime$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
* The type of the price.
|
|
34
|
-
*/
|
|
35
|
-
exports.ProductPriceOneTimeType = {
|
|
36
|
-
OneTime: "one_time",
|
|
37
|
-
};
|
|
31
|
+
const productpriceonetimecustom_js_1 = require("./productpriceonetimecustom.js");
|
|
32
|
+
const productpriceonetimefixed_js_1 = require("./productpriceonetimefixed.js");
|
|
38
33
|
/** @internal */
|
|
39
|
-
exports.
|
|
34
|
+
exports.ProductPriceOneTime$inboundSchema = z.union([
|
|
35
|
+
productpriceonetimefixed_js_1.ProductPriceOneTimeFixed$inboundSchema,
|
|
36
|
+
productpriceonetimecustom_js_1.ProductPriceOneTimeCustom$inboundSchema,
|
|
37
|
+
]);
|
|
40
38
|
/** @internal */
|
|
41
|
-
exports.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
*/
|
|
46
|
-
var ProductPriceOneTimeType$;
|
|
47
|
-
(function (ProductPriceOneTimeType$) {
|
|
48
|
-
/** @deprecated use `ProductPriceOneTimeType$inboundSchema` instead. */
|
|
49
|
-
ProductPriceOneTimeType$.inboundSchema = exports.ProductPriceOneTimeType$inboundSchema;
|
|
50
|
-
/** @deprecated use `ProductPriceOneTimeType$outboundSchema` instead. */
|
|
51
|
-
ProductPriceOneTimeType$.outboundSchema = exports.ProductPriceOneTimeType$outboundSchema;
|
|
52
|
-
})(ProductPriceOneTimeType$ || (exports.ProductPriceOneTimeType$ = ProductPriceOneTimeType$ = {}));
|
|
53
|
-
/** @internal */
|
|
54
|
-
exports.ProductPriceOneTime$inboundSchema = z.object({
|
|
55
|
-
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
56
|
-
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
57
|
-
id: z.string(),
|
|
58
|
-
price_amount: z.number().int(),
|
|
59
|
-
price_currency: z.string(),
|
|
60
|
-
is_archived: z.boolean(),
|
|
61
|
-
type: z.literal("one_time").optional(),
|
|
62
|
-
}).transform((v) => {
|
|
63
|
-
return (0, primitives_js_1.remap)(v, {
|
|
64
|
-
"created_at": "createdAt",
|
|
65
|
-
"modified_at": "modifiedAt",
|
|
66
|
-
"price_amount": "priceAmount",
|
|
67
|
-
"price_currency": "priceCurrency",
|
|
68
|
-
"is_archived": "isArchived",
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
/** @internal */
|
|
72
|
-
exports.ProductPriceOneTime$outboundSchema = z.object({
|
|
73
|
-
createdAt: z.date().transform(v => v.toISOString()),
|
|
74
|
-
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
75
|
-
id: z.string(),
|
|
76
|
-
priceAmount: z.number().int(),
|
|
77
|
-
priceCurrency: z.string(),
|
|
78
|
-
isArchived: z.boolean(),
|
|
79
|
-
type: z.literal("one_time").default("one_time"),
|
|
80
|
-
}).transform((v) => {
|
|
81
|
-
return (0, primitives_js_1.remap)(v, {
|
|
82
|
-
createdAt: "created_at",
|
|
83
|
-
modifiedAt: "modified_at",
|
|
84
|
-
priceAmount: "price_amount",
|
|
85
|
-
priceCurrency: "price_currency",
|
|
86
|
-
isArchived: "is_archived",
|
|
87
|
-
});
|
|
88
|
-
});
|
|
39
|
+
exports.ProductPriceOneTime$outboundSchema = z.union([
|
|
40
|
+
productpriceonetimefixed_js_1.ProductPriceOneTimeFixed$outboundSchema,
|
|
41
|
+
productpriceonetimecustom_js_1.ProductPriceOneTimeCustom$outboundSchema,
|
|
42
|
+
]);
|
|
89
43
|
/**
|
|
90
44
|
* @internal
|
|
91
45
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productpriceonetime.js","sourceRoot":"","sources":["../../src/models/components/productpriceonetime.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"productpriceonetime.js","sourceRoot":"","sources":["../../src/models/components/productpriceonetime.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,iFAKwC;AACxC,+EAKuC;AAMvC,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,KAAK,CAAC;IACV,oEAAsC;IACtC,sEAAuC;CACxC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,KAAK,CAAC;IACV,qEAAuC;IACvC,uEAAwC;CACzC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC"}
|