@polar-sh/sdk 0.17.4 → 0.18.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/FUNCTIONS.md +106 -0
- package/README.md +181 -30
- package/RUNTIMES.md +22 -0
- package/docs/sdks/checkouts/README.md +1 -1
- package/hooks/hooks.d.ts.map +1 -1
- package/hooks/hooks.js +18 -0
- package/hooks/hooks.js.map +1 -1
- package/hooks/types.d.ts +3 -0
- package/hooks/types.d.ts.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/benefit.d.ts +2 -3
- package/models/components/benefit.d.ts.map +1 -1
- package/models/components/benefit.js +0 -3
- package/models/components/benefit.js.map +1 -1
- package/models/components/benefitadssubscriber.d.ts +7 -7
- package/models/components/benefitadssubscriber.d.ts.map +1 -1
- package/models/components/benefitadssubscriber.js +11 -11
- package/models/components/benefitadssubscriber.js.map +1 -1
- package/models/components/benefitgrant.d.ts +4 -5
- package/models/components/benefitgrant.d.ts.map +1 -1
- package/models/components/benefitgrant.js +0 -5
- package/models/components/benefitgrant.js.map +1 -1
- package/models/components/benefitgrantwebhook.d.ts +8 -9
- package/models/components/benefitgrantwebhook.d.ts.map +1 -1
- package/models/components/benefitgrantwebhook.js +0 -9
- package/models/components/benefitgrantwebhook.js.map +1 -1
- package/models/components/benefittype.d.ts +0 -3
- package/models/components/benefittype.d.ts.map +1 -1
- package/models/components/benefittype.js +0 -1
- package/models/components/benefittype.js.map +1 -1
- package/models/components/checkoutlinkproduct.d.ts +2 -24
- package/models/components/checkoutlinkproduct.d.ts.map +1 -1
- package/models/components/checkoutlinkproduct.js +3 -27
- package/models/components/checkoutlinkproduct.js.map +1 -1
- package/models/components/checkoutproduct.d.ts +2 -24
- package/models/components/checkoutproduct.d.ts.map +1 -1
- package/models/components/checkoutproduct.js +3 -27
- package/models/components/checkoutproduct.js.map +1 -1
- package/models/components/index.d.ts +0 -15
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -15
- package/models/components/index.js.map +1 -1
- package/models/components/listresourceuserbenefit.d.ts +0 -9
- package/models/components/listresourceuserbenefit.d.ts.map +1 -1
- package/models/components/listresourceuserbenefit.js +0 -13
- package/models/components/listresourceuserbenefit.js.map +1 -1
- package/models/components/oauth2client.js +2 -2
- package/models/components/oauth2client.js.map +1 -1
- package/models/components/oauth2clientconfiguration.js +2 -2
- package/models/components/oauth2clientconfiguration.js.map +1 -1
- package/models/components/oauth2clientconfigurationupdate.js +2 -2
- package/models/components/oauth2clientconfigurationupdate.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/scope.d.ts +0 -6
- package/models/components/scope.d.ts.map +1 -1
- package/models/components/scope.js +0 -2
- package/models/components/scope.js.map +1 -1
- package/models/components/userorderproduct.d.ts +2 -24
- package/models/components/userorderproduct.d.ts.map +1 -1
- package/models/components/userorderproduct.js +3 -27
- package/models/components/userorderproduct.js.map +1 -1
- package/models/components/usersubscriptionproduct.d.ts +2 -24
- package/models/components/usersubscriptionproduct.d.ts.map +1 -1
- package/models/components/usersubscriptionproduct.js +3 -27
- package/models/components/usersubscriptionproduct.js.map +1 -1
- package/models/operations/benefitsupdate.d.ts +4 -4
- package/models/operations/benefitsupdate.d.ts.map +1 -1
- package/models/operations/benefitsupdate.js +0 -4
- package/models/operations/benefitsupdate.js.map +1 -1
- package/models/operations/index.d.ts +0 -8
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -8
- package/models/operations/index.js.map +1 -1
- package/models/operations/usersbenefitsget.d.ts +2 -6
- package/models/operations/usersbenefitsget.d.ts.map +1 -1
- package/models/operations/usersbenefitsget.js +0 -6
- package/models/operations/usersbenefitsget.js.map +1 -1
- package/package.json +1 -3
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -5
- package/sdk/sdk.js.map +1 -1
- package/src/hooks/hooks.ts +20 -0
- package/src/hooks/types.ts +9 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/benefit.ts +0 -10
- package/src/models/components/benefitadssubscriber.ts +12 -15
- package/src/models/components/benefitgrant.ts +0 -14
- package/src/models/components/benefitgrantwebhook.ts +0 -22
- package/src/models/components/benefittype.ts +0 -1
- package/src/models/components/checkoutlinkproduct.ts +4 -68
- package/src/models/components/checkoutproduct.ts +4 -66
- package/src/models/components/index.ts +0 -15
- package/src/models/components/listresourceuserbenefit.ts +0 -30
- package/src/models/components/oauth2client.ts +2 -2
- package/src/models/components/oauth2clientconfiguration.ts +2 -2
- package/src/models/components/oauth2clientconfigurationupdate.ts +2 -2
- package/src/models/components/organizationfeaturesettings.ts +0 -9
- package/src/models/components/scope.ts +0 -2
- package/src/models/components/userorderproduct.ts +4 -60
- package/src/models/components/usersubscriptionproduct.ts +4 -68
- package/src/models/operations/benefitsupdate.ts +0 -8
- package/src/models/operations/index.ts +0 -8
- package/src/models/operations/usersbenefitsget.ts +0 -12
- package/src/sdk/sdk.ts +0 -6
- package/src/types/index.ts +1 -0
- package/src/types/webhooks.ts +7 -0
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/webhooks.d.ts +4 -0
- package/types/webhooks.d.ts.map +1 -0
- package/types/webhooks.js +6 -0
- package/types/webhooks.js.map +1 -0
- package/docs/sdks/articles/README.md +0 -724
- package/funcs/articlesCreate.d.ts +0 -16
- package/funcs/articlesCreate.d.ts.map +0 -1
- package/funcs/articlesCreate.js +0 -99
- package/funcs/articlesCreate.js.map +0 -1
- package/funcs/articlesDelete.d.ts +0 -16
- package/funcs/articlesDelete.d.ts.map +0 -1
- package/funcs/articlesDelete.js +0 -105
- package/funcs/articlesDelete.js.map +0 -1
- package/funcs/articlesExport.d.ts +0 -16
- package/funcs/articlesExport.d.ts.map +0 -1
- package/funcs/articlesExport.js +0 -103
- package/funcs/articlesExport.js.map +0 -1
- package/funcs/articlesGet.d.ts +0 -17
- package/funcs/articlesGet.d.ts.map +0 -1
- package/funcs/articlesGet.js +0 -105
- package/funcs/articlesGet.js.map +0 -1
- package/funcs/articlesList.d.ts +0 -19
- package/funcs/articlesList.d.ts.map +0 -1
- package/funcs/articlesList.js +0 -138
- package/funcs/articlesList.js.map +0 -1
- package/funcs/articlesPreview.d.ts +0 -16
- package/funcs/articlesPreview.d.ts.map +0 -1
- package/funcs/articlesPreview.js +0 -106
- package/funcs/articlesPreview.js.map +0 -1
- package/funcs/articlesReceivers.d.ts +0 -17
- package/funcs/articlesReceivers.d.ts.map +0 -1
- package/funcs/articlesReceivers.js +0 -105
- package/funcs/articlesReceivers.js.map +0 -1
- package/funcs/articlesSend.d.ts +0 -16
- package/funcs/articlesSend.d.ts.map +0 -1
- package/funcs/articlesSend.js +0 -105
- package/funcs/articlesSend.js.map +0 -1
- package/funcs/articlesUpdate.d.ts +0 -17
- package/funcs/articlesUpdate.d.ts.map +0 -1
- package/funcs/articlesUpdate.js +0 -106
- package/funcs/articlesUpdate.js.map +0 -1
- package/models/components/article.d.ts +0 -68
- package/models/components/article.d.ts.map +0 -1
- package/models/components/article.js +0 -129
- package/models/components/article.js.map +0 -1
- package/models/components/articlebyline.d.ts +0 -28
- package/models/components/articlebyline.d.ts.map +0 -1
- package/models/components/articlebyline.js +0 -50
- package/models/components/articlebyline.js.map +0 -1
- package/models/components/articlecreate.d.ts +0 -93
- package/models/components/articlecreate.d.ts.map +0 -1
- package/models/components/articlecreate.js +0 -112
- package/models/components/articlecreate.js.map +0 -1
- package/models/components/articlepreview.d.ts +0 -32
- package/models/components/articlepreview.d.ts.map +0 -1
- package/models/components/articlepreview.js +0 -59
- package/models/components/articlepreview.js.map +0 -1
- package/models/components/articlereceivers.d.ts +0 -33
- package/models/components/articlereceivers.d.ts.map +0 -1
- package/models/components/articlereceivers.js +0 -76
- package/models/components/articlereceivers.js.map +0 -1
- package/models/components/articleupdate.d.ts +0 -85
- package/models/components/articleupdate.d.ts.map +0 -1
- package/models/components/articleupdate.js +0 -108
- package/models/components/articleupdate.js.map +0 -1
- package/models/components/articlevisibility.d.ts +0 -31
- package/models/components/articlevisibility.d.ts.map +0 -1
- package/models/components/articlevisibility.js +0 -51
- package/models/components/articlevisibility.js.map +0 -1
- package/models/components/benefitarticles.d.ts +0 -100
- package/models/components/benefitarticles.d.ts.map +0 -1
- package/models/components/benefitarticles.js +0 -107
- package/models/components/benefitarticles.js.map +0 -1
- package/models/components/benefitarticlesproperties.d.ts +0 -35
- package/models/components/benefitarticlesproperties.d.ts.map +0 -1
- package/models/components/benefitarticlesproperties.js +0 -68
- package/models/components/benefitarticlesproperties.js.map +0 -1
- package/models/components/benefitarticlessubscriber.d.ts +0 -99
- package/models/components/benefitarticlessubscriber.d.ts.map +0 -1
- package/models/components/benefitarticlessubscriber.js +0 -113
- package/models/components/benefitarticlessubscriber.js.map +0 -1
- package/models/components/benefitarticlessubscriberproperties.d.ts +0 -35
- package/models/components/benefitarticlessubscriberproperties.d.ts.map +0 -1
- package/models/components/benefitarticlessubscriberproperties.js +0 -68
- package/models/components/benefitarticlessubscriberproperties.js.map +0 -1
- package/models/components/benefitarticlesupdate.d.ts +0 -57
- package/models/components/benefitarticlesupdate.d.ts.map +0 -1
- package/models/components/benefitarticlesupdate.js +0 -79
- package/models/components/benefitarticlesupdate.js.map +0 -1
- package/models/components/benefitgrantarticlesproperties.d.ts +0 -25
- package/models/components/benefitgrantarticlesproperties.d.ts.map +0 -1
- package/models/components/benefitgrantarticlesproperties.js +0 -55
- package/models/components/benefitgrantarticlesproperties.js.map +0 -1
- package/models/components/bylineprofile.d.ts +0 -31
- package/models/components/bylineprofile.d.ts.map +0 -1
- package/models/components/bylineprofile.js +0 -70
- package/models/components/bylineprofile.js.map +0 -1
- package/models/components/listresourcearticle.d.ts +0 -33
- package/models/components/listresourcearticle.d.ts.map +0 -1
- package/models/components/listresourcearticle.js +0 -63
- package/models/components/listresourcearticle.js.map +0 -1
- package/models/operations/articlesdelete.d.ts +0 -29
- package/models/operations/articlesdelete.d.ts.map +0 -1
- package/models/operations/articlesdelete.js +0 -59
- package/models/operations/articlesdelete.js.map +0 -1
- package/models/operations/articlesexport.d.ts +0 -29
- package/models/operations/articlesexport.d.ts.map +0 -1
- package/models/operations/articlesexport.js +0 -68
- package/models/operations/articlesexport.js.map +0 -1
- package/models/operations/articlesget.d.ts +0 -29
- package/models/operations/articlesget.d.ts.map +0 -1
- package/models/operations/articlesget.js +0 -59
- package/models/operations/articlesget.js.map +0 -1
- package/models/operations/articleslist.d.ts +0 -141
- package/models/operations/articleslist.d.ts.map +0 -1
- package/models/operations/articleslist.js +0 -184
- package/models/operations/articleslist.js.map +0 -1
- package/models/operations/articlespreview.d.ts +0 -32
- package/models/operations/articlespreview.d.ts.map +0 -1
- package/models/operations/articlespreview.js +0 -71
- package/models/operations/articlespreview.js.map +0 -1
- package/models/operations/articlesreceivers.d.ts +0 -29
- package/models/operations/articlesreceivers.d.ts.map +0 -1
- package/models/operations/articlesreceivers.js +0 -59
- package/models/operations/articlesreceivers.js.map +0 -1
- package/models/operations/articlessend.d.ts +0 -29
- package/models/operations/articlessend.d.ts.map +0 -1
- package/models/operations/articlessend.js +0 -59
- package/models/operations/articlessend.js.map +0 -1
- package/models/operations/articlesupdate.d.ts +0 -32
- package/models/operations/articlesupdate.d.ts.map +0 -1
- package/models/operations/articlesupdate.js +0 -71
- package/models/operations/articlesupdate.js.map +0 -1
- package/sdk/articles.d.ts +0 -72
- package/sdk/articles.d.ts.map +0 -1
- package/sdk/articles.js +0 -103
- package/sdk/articles.js.map +0 -1
- package/src/funcs/articlesCreate.ts +0 -131
- package/src/funcs/articlesDelete.ts +0 -144
- package/src/funcs/articlesExport.ts +0 -136
- package/src/funcs/articlesGet.ts +0 -141
- package/src/funcs/articlesList.ts +0 -205
- package/src/funcs/articlesPreview.ts +0 -145
- package/src/funcs/articlesReceivers.ts +0 -138
- package/src/funcs/articlesSend.ts +0 -144
- package/src/funcs/articlesUpdate.ts +0 -145
- package/src/models/components/article.ts +0 -187
- package/src/models/components/articlebyline.ts +0 -33
- package/src/models/components/articlecreate.ts +0 -191
- package/src/models/components/articlepreview.ts +0 -65
- package/src/models/components/articlereceivers.ts +0 -87
- package/src/models/components/articleupdate.ts +0 -179
- package/src/models/components/articlevisibility.ts +0 -34
- package/src/models/components/benefitarticles.ts +0 -175
- package/src/models/components/benefitarticlesproperties.ts +0 -81
- package/src/models/components/benefitarticlessubscriber.ts +0 -189
- package/src/models/components/benefitarticlessubscriberproperties.ts +0 -86
- package/src/models/components/benefitarticlesupdate.ts +0 -102
- package/src/models/components/benefitgrantarticlesproperties.ts +0 -60
- package/src/models/components/bylineprofile.ts +0 -75
- package/src/models/components/listresourcearticle.ts +0 -82
- package/src/models/operations/articlesdelete.ts +0 -66
- package/src/models/operations/articlesexport.ts +0 -75
- package/src/models/operations/articlesget.ts +0 -66
- package/src/models/operations/articleslist.ts +0 -342
- package/src/models/operations/articlespreview.ts +0 -80
- package/src/models/operations/articlesreceivers.ts +0 -66
- package/src/models/operations/articlessend.ts +0 -66
- package/src/models/operations/articlesupdate.ts +0 -80
- package/src/sdk/articles.ts +0 -173
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.BenefitArticles$ = exports.BenefitArticles$outboundSchema = exports.BenefitArticles$inboundSchema = exports.BenefitArticlesType$ = exports.BenefitArticlesType$outboundSchema = exports.BenefitArticlesType$inboundSchema = exports.BenefitArticlesType = void 0;
|
|
30
|
-
exports.benefitArticlesToJSON = benefitArticlesToJSON;
|
|
31
|
-
exports.benefitArticlesFromJSON = benefitArticlesFromJSON;
|
|
32
|
-
const z = __importStar(require("zod"));
|
|
33
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
-
const benefitarticlesproperties_js_1 = require("./benefitarticlesproperties.js");
|
|
36
|
-
exports.BenefitArticlesType = {
|
|
37
|
-
Articles: "articles",
|
|
38
|
-
};
|
|
39
|
-
/** @internal */
|
|
40
|
-
exports.BenefitArticlesType$inboundSchema = z.nativeEnum(exports.BenefitArticlesType);
|
|
41
|
-
/** @internal */
|
|
42
|
-
exports.BenefitArticlesType$outboundSchema = exports.BenefitArticlesType$inboundSchema;
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
-
*/
|
|
47
|
-
var BenefitArticlesType$;
|
|
48
|
-
(function (BenefitArticlesType$) {
|
|
49
|
-
/** @deprecated use `BenefitArticlesType$inboundSchema` instead. */
|
|
50
|
-
BenefitArticlesType$.inboundSchema = exports.BenefitArticlesType$inboundSchema;
|
|
51
|
-
/** @deprecated use `BenefitArticlesType$outboundSchema` instead. */
|
|
52
|
-
BenefitArticlesType$.outboundSchema = exports.BenefitArticlesType$outboundSchema;
|
|
53
|
-
})(BenefitArticlesType$ || (exports.BenefitArticlesType$ = BenefitArticlesType$ = {}));
|
|
54
|
-
/** @internal */
|
|
55
|
-
exports.BenefitArticles$inboundSchema = z.object({
|
|
56
|
-
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
57
|
-
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
58
|
-
id: z.string(),
|
|
59
|
-
type: z.literal("articles").optional(),
|
|
60
|
-
description: z.string(),
|
|
61
|
-
selectable: z.boolean(),
|
|
62
|
-
deletable: z.boolean(),
|
|
63
|
-
organization_id: z.string(),
|
|
64
|
-
properties: benefitarticlesproperties_js_1.BenefitArticlesProperties$inboundSchema,
|
|
65
|
-
}).transform((v) => {
|
|
66
|
-
return (0, primitives_js_1.remap)(v, {
|
|
67
|
-
"created_at": "createdAt",
|
|
68
|
-
"modified_at": "modifiedAt",
|
|
69
|
-
"organization_id": "organizationId",
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
/** @internal */
|
|
73
|
-
exports.BenefitArticles$outboundSchema = z.object({
|
|
74
|
-
createdAt: z.date().transform(v => v.toISOString()),
|
|
75
|
-
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
76
|
-
id: z.string(),
|
|
77
|
-
type: z.literal("articles").default("articles"),
|
|
78
|
-
description: z.string(),
|
|
79
|
-
selectable: z.boolean(),
|
|
80
|
-
deletable: z.boolean(),
|
|
81
|
-
organizationId: z.string(),
|
|
82
|
-
properties: benefitarticlesproperties_js_1.BenefitArticlesProperties$outboundSchema,
|
|
83
|
-
}).transform((v) => {
|
|
84
|
-
return (0, primitives_js_1.remap)(v, {
|
|
85
|
-
createdAt: "created_at",
|
|
86
|
-
modifiedAt: "modified_at",
|
|
87
|
-
organizationId: "organization_id",
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
-
*/
|
|
94
|
-
var BenefitArticles$;
|
|
95
|
-
(function (BenefitArticles$) {
|
|
96
|
-
/** @deprecated use `BenefitArticles$inboundSchema` instead. */
|
|
97
|
-
BenefitArticles$.inboundSchema = exports.BenefitArticles$inboundSchema;
|
|
98
|
-
/** @deprecated use `BenefitArticles$outboundSchema` instead. */
|
|
99
|
-
BenefitArticles$.outboundSchema = exports.BenefitArticles$outboundSchema;
|
|
100
|
-
})(BenefitArticles$ || (exports.BenefitArticles$ = BenefitArticles$ = {}));
|
|
101
|
-
function benefitArticlesToJSON(benefitArticles) {
|
|
102
|
-
return JSON.stringify(exports.BenefitArticles$outboundSchema.parse(benefitArticles));
|
|
103
|
-
}
|
|
104
|
-
function benefitArticlesFromJSON(jsonString) {
|
|
105
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BenefitArticles$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BenefitArticles' from JSON`);
|
|
106
|
-
}
|
|
107
|
-
//# sourceMappingURL=benefitarticles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitarticles.js","sourceRoot":"","sources":["../../src/models/components/benefitarticles.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA8JH,sDAIC;AAED,0DAQC;AA1KD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAIjD,iFAKw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AAED,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
/**
|
|
5
|
-
* Properties for a benefit of type `articles`.
|
|
6
|
-
*/
|
|
7
|
-
export type BenefitArticlesProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* Whether the user can access paid articles.
|
|
10
|
-
*/
|
|
11
|
-
paidArticles: boolean;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const BenefitArticlesProperties$inboundSchema: z.ZodType<BenefitArticlesProperties, z.ZodTypeDef, unknown>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export type BenefitArticlesProperties$Outbound = {
|
|
17
|
-
paid_articles: boolean;
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const BenefitArticlesProperties$outboundSchema: z.ZodType<BenefitArticlesProperties$Outbound, z.ZodTypeDef, BenefitArticlesProperties>;
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
-
*/
|
|
25
|
-
export declare namespace BenefitArticlesProperties$ {
|
|
26
|
-
/** @deprecated use `BenefitArticlesProperties$inboundSchema` instead. */
|
|
27
|
-
const inboundSchema: z.ZodType<BenefitArticlesProperties, z.ZodTypeDef, unknown>;
|
|
28
|
-
/** @deprecated use `BenefitArticlesProperties$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.ZodType<BenefitArticlesProperties$Outbound, z.ZodTypeDef, BenefitArticlesProperties>;
|
|
30
|
-
/** @deprecated use `BenefitArticlesProperties$Outbound` instead. */
|
|
31
|
-
type Outbound = BenefitArticlesProperties$Outbound;
|
|
32
|
-
}
|
|
33
|
-
export declare function benefitArticlesPropertiesToJSON(benefitArticlesProperties: BenefitArticlesProperties): string;
|
|
34
|
-
export declare function benefitArticlesPropertiesFromJSON(jsonString: string): SafeParseResult<BenefitArticlesProperties, SDKValidationError>;
|
|
35
|
-
//# sourceMappingURL=benefitarticlesproperties.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitarticlesproperties.d.ts","sourceRoot":"","sources":["../../src/models/components/benefitarticlesproperties.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CAOzB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa,6DAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc,wFAA2C,CAAC;IACvE,oEAAoE;IACpE,KAAY,QAAQ,GAAG,kCAAkC,CAAC;CAC3D;AAED,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR;AAED,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.BenefitArticlesProperties$ = exports.BenefitArticlesProperties$outboundSchema = exports.BenefitArticlesProperties$inboundSchema = void 0;
|
|
30
|
-
exports.benefitArticlesPropertiesToJSON = benefitArticlesPropertiesToJSON;
|
|
31
|
-
exports.benefitArticlesPropertiesFromJSON = benefitArticlesPropertiesFromJSON;
|
|
32
|
-
const z = __importStar(require("zod"));
|
|
33
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
-
/** @internal */
|
|
36
|
-
exports.BenefitArticlesProperties$inboundSchema = z.object({
|
|
37
|
-
paid_articles: z.boolean(),
|
|
38
|
-
}).transform((v) => {
|
|
39
|
-
return (0, primitives_js_1.remap)(v, {
|
|
40
|
-
"paid_articles": "paidArticles",
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
/** @internal */
|
|
44
|
-
exports.BenefitArticlesProperties$outboundSchema = z.object({
|
|
45
|
-
paidArticles: z.boolean(),
|
|
46
|
-
}).transform((v) => {
|
|
47
|
-
return (0, primitives_js_1.remap)(v, {
|
|
48
|
-
paidArticles: "paid_articles",
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
-
*/
|
|
55
|
-
var BenefitArticlesProperties$;
|
|
56
|
-
(function (BenefitArticlesProperties$) {
|
|
57
|
-
/** @deprecated use `BenefitArticlesProperties$inboundSchema` instead. */
|
|
58
|
-
BenefitArticlesProperties$.inboundSchema = exports.BenefitArticlesProperties$inboundSchema;
|
|
59
|
-
/** @deprecated use `BenefitArticlesProperties$outboundSchema` instead. */
|
|
60
|
-
BenefitArticlesProperties$.outboundSchema = exports.BenefitArticlesProperties$outboundSchema;
|
|
61
|
-
})(BenefitArticlesProperties$ || (exports.BenefitArticlesProperties$ = BenefitArticlesProperties$ = {}));
|
|
62
|
-
function benefitArticlesPropertiesToJSON(benefitArticlesProperties) {
|
|
63
|
-
return JSON.stringify(exports.BenefitArticlesProperties$outboundSchema.parse(benefitArticlesProperties));
|
|
64
|
-
}
|
|
65
|
-
function benefitArticlesPropertiesFromJSON(jsonString) {
|
|
66
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BenefitArticlesProperties$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BenefitArticlesProperties' from JSON`);
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=benefitarticlesproperties.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitarticlesproperties.js","sourceRoot":"","sources":["../../src/models/components/benefitarticlesproperties.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DH,0EAMC;AAED,8EAQC;AA5ED,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAcjD,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE;CAC3B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,+CAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,gDAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,0CAA1B,0BAA0B,QAO1C;AAED,SAAgB,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AAED,SAAgB,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
import { BenefitArticlesSubscriberProperties, BenefitArticlesSubscriberProperties$Outbound } from "./benefitarticlessubscriberproperties.js";
|
|
6
|
-
import { BenefitGrantSubscriber, BenefitGrantSubscriber$Outbound } from "./benefitgrantsubscriber.js";
|
|
7
|
-
import { Organization, Organization$Outbound } from "./organization.js";
|
|
8
|
-
export declare const Type: {
|
|
9
|
-
readonly Articles: "articles";
|
|
10
|
-
};
|
|
11
|
-
export type Type = ClosedEnum<typeof Type>;
|
|
12
|
-
export type BenefitArticlesSubscriber = {
|
|
13
|
-
/**
|
|
14
|
-
* Creation timestamp of the object.
|
|
15
|
-
*/
|
|
16
|
-
createdAt: Date;
|
|
17
|
-
/**
|
|
18
|
-
* Last modification timestamp of the object.
|
|
19
|
-
*/
|
|
20
|
-
modifiedAt: Date | null;
|
|
21
|
-
/**
|
|
22
|
-
* The ID of the benefit.
|
|
23
|
-
*/
|
|
24
|
-
id: string;
|
|
25
|
-
type?: "articles" | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* The description of the benefit.
|
|
28
|
-
*/
|
|
29
|
-
description: string;
|
|
30
|
-
/**
|
|
31
|
-
* Whether the benefit is selectable when creating a product.
|
|
32
|
-
*/
|
|
33
|
-
selectable: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Whether the benefit is deletable.
|
|
36
|
-
*/
|
|
37
|
-
deletable: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* The ID of the organization owning the benefit.
|
|
40
|
-
*/
|
|
41
|
-
organizationId: string;
|
|
42
|
-
grants: Array<BenefitGrantSubscriber>;
|
|
43
|
-
organization: Organization;
|
|
44
|
-
/**
|
|
45
|
-
* Properties available to subscribers for a benefit of type `articles`.
|
|
46
|
-
*/
|
|
47
|
-
properties: BenefitArticlesSubscriberProperties;
|
|
48
|
-
};
|
|
49
|
-
/** @internal */
|
|
50
|
-
export declare const Type$inboundSchema: z.ZodNativeEnum<typeof Type>;
|
|
51
|
-
/** @internal */
|
|
52
|
-
export declare const Type$outboundSchema: z.ZodNativeEnum<typeof Type>;
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
-
*/
|
|
57
|
-
export declare namespace Type$ {
|
|
58
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
59
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
60
|
-
readonly Articles: "articles";
|
|
61
|
-
}>;
|
|
62
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
63
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
64
|
-
readonly Articles: "articles";
|
|
65
|
-
}>;
|
|
66
|
-
}
|
|
67
|
-
/** @internal */
|
|
68
|
-
export declare const BenefitArticlesSubscriber$inboundSchema: z.ZodType<BenefitArticlesSubscriber, z.ZodTypeDef, unknown>;
|
|
69
|
-
/** @internal */
|
|
70
|
-
export type BenefitArticlesSubscriber$Outbound = {
|
|
71
|
-
created_at: string;
|
|
72
|
-
modified_at: string | null;
|
|
73
|
-
id: string;
|
|
74
|
-
type: "articles";
|
|
75
|
-
description: string;
|
|
76
|
-
selectable: boolean;
|
|
77
|
-
deletable: boolean;
|
|
78
|
-
organization_id: string;
|
|
79
|
-
grants: Array<BenefitGrantSubscriber$Outbound>;
|
|
80
|
-
organization: Organization$Outbound;
|
|
81
|
-
properties: BenefitArticlesSubscriberProperties$Outbound;
|
|
82
|
-
};
|
|
83
|
-
/** @internal */
|
|
84
|
-
export declare const BenefitArticlesSubscriber$outboundSchema: z.ZodType<BenefitArticlesSubscriber$Outbound, z.ZodTypeDef, BenefitArticlesSubscriber>;
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
-
*/
|
|
89
|
-
export declare namespace BenefitArticlesSubscriber$ {
|
|
90
|
-
/** @deprecated use `BenefitArticlesSubscriber$inboundSchema` instead. */
|
|
91
|
-
const inboundSchema: z.ZodType<BenefitArticlesSubscriber, z.ZodTypeDef, unknown>;
|
|
92
|
-
/** @deprecated use `BenefitArticlesSubscriber$outboundSchema` instead. */
|
|
93
|
-
const outboundSchema: z.ZodType<BenefitArticlesSubscriber$Outbound, z.ZodTypeDef, BenefitArticlesSubscriber>;
|
|
94
|
-
/** @deprecated use `BenefitArticlesSubscriber$Outbound` instead. */
|
|
95
|
-
type Outbound = BenefitArticlesSubscriber$Outbound;
|
|
96
|
-
}
|
|
97
|
-
export declare function benefitArticlesSubscriberToJSON(benefitArticlesSubscriber: BenefitArticlesSubscriber): string;
|
|
98
|
-
export declare function benefitArticlesSubscriberFromJSON(jsonString: string): SafeParseResult<BenefitArticlesSubscriber, SDKValidationError>;
|
|
99
|
-
//# sourceMappingURL=benefitarticlessubscriber.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitarticlessubscriber.d.ts","sourceRoot":"","sources":["../../src/models/components/benefitarticlessubscriber.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mCAAmC,EAEnC,4CAA4C,EAE7C,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,IAAI;;CAEP,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AAE3C,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IACtC,YAAY,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,UAAU,EAAE,mCAAmC,CAAC;CACjD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,aAAa,CAAC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AAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.BenefitArticlesSubscriber$ = exports.BenefitArticlesSubscriber$outboundSchema = exports.BenefitArticlesSubscriber$inboundSchema = exports.Type$ = exports.Type$outboundSchema = exports.Type$inboundSchema = exports.Type = void 0;
|
|
30
|
-
exports.benefitArticlesSubscriberToJSON = benefitArticlesSubscriberToJSON;
|
|
31
|
-
exports.benefitArticlesSubscriberFromJSON = benefitArticlesSubscriberFromJSON;
|
|
32
|
-
const z = __importStar(require("zod"));
|
|
33
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
-
const benefitarticlessubscriberproperties_js_1 = require("./benefitarticlessubscriberproperties.js");
|
|
36
|
-
const benefitgrantsubscriber_js_1 = require("./benefitgrantsubscriber.js");
|
|
37
|
-
const organization_js_1 = require("./organization.js");
|
|
38
|
-
exports.Type = {
|
|
39
|
-
Articles: "articles",
|
|
40
|
-
};
|
|
41
|
-
/** @internal */
|
|
42
|
-
exports.Type$inboundSchema = z.nativeEnum(exports.Type);
|
|
43
|
-
/** @internal */
|
|
44
|
-
exports.Type$outboundSchema = exports.Type$inboundSchema;
|
|
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 Type$;
|
|
50
|
-
(function (Type$) {
|
|
51
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
52
|
-
Type$.inboundSchema = exports.Type$inboundSchema;
|
|
53
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
54
|
-
Type$.outboundSchema = exports.Type$outboundSchema;
|
|
55
|
-
})(Type$ || (exports.Type$ = Type$ = {}));
|
|
56
|
-
/** @internal */
|
|
57
|
-
exports.BenefitArticlesSubscriber$inboundSchema = z.object({
|
|
58
|
-
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
59
|
-
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
60
|
-
id: z.string(),
|
|
61
|
-
type: z.literal("articles").optional(),
|
|
62
|
-
description: z.string(),
|
|
63
|
-
selectable: z.boolean(),
|
|
64
|
-
deletable: z.boolean(),
|
|
65
|
-
organization_id: z.string(),
|
|
66
|
-
grants: z.array(benefitgrantsubscriber_js_1.BenefitGrantSubscriber$inboundSchema),
|
|
67
|
-
organization: organization_js_1.Organization$inboundSchema,
|
|
68
|
-
properties: benefitarticlessubscriberproperties_js_1.BenefitArticlesSubscriberProperties$inboundSchema,
|
|
69
|
-
}).transform((v) => {
|
|
70
|
-
return (0, primitives_js_1.remap)(v, {
|
|
71
|
-
"created_at": "createdAt",
|
|
72
|
-
"modified_at": "modifiedAt",
|
|
73
|
-
"organization_id": "organizationId",
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
/** @internal */
|
|
77
|
-
exports.BenefitArticlesSubscriber$outboundSchema = z.object({
|
|
78
|
-
createdAt: z.date().transform(v => v.toISOString()),
|
|
79
|
-
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
80
|
-
id: z.string(),
|
|
81
|
-
type: z.literal("articles").default("articles"),
|
|
82
|
-
description: z.string(),
|
|
83
|
-
selectable: z.boolean(),
|
|
84
|
-
deletable: z.boolean(),
|
|
85
|
-
organizationId: z.string(),
|
|
86
|
-
grants: z.array(benefitgrantsubscriber_js_1.BenefitGrantSubscriber$outboundSchema),
|
|
87
|
-
organization: organization_js_1.Organization$outboundSchema,
|
|
88
|
-
properties: benefitarticlessubscriberproperties_js_1.BenefitArticlesSubscriberProperties$outboundSchema,
|
|
89
|
-
}).transform((v) => {
|
|
90
|
-
return (0, primitives_js_1.remap)(v, {
|
|
91
|
-
createdAt: "created_at",
|
|
92
|
-
modifiedAt: "modified_at",
|
|
93
|
-
organizationId: "organization_id",
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
/**
|
|
97
|
-
* @internal
|
|
98
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
99
|
-
*/
|
|
100
|
-
var BenefitArticlesSubscriber$;
|
|
101
|
-
(function (BenefitArticlesSubscriber$) {
|
|
102
|
-
/** @deprecated use `BenefitArticlesSubscriber$inboundSchema` instead. */
|
|
103
|
-
BenefitArticlesSubscriber$.inboundSchema = exports.BenefitArticlesSubscriber$inboundSchema;
|
|
104
|
-
/** @deprecated use `BenefitArticlesSubscriber$outboundSchema` instead. */
|
|
105
|
-
BenefitArticlesSubscriber$.outboundSchema = exports.BenefitArticlesSubscriber$outboundSchema;
|
|
106
|
-
})(BenefitArticlesSubscriber$ || (exports.BenefitArticlesSubscriber$ = BenefitArticlesSubscriber$ = {}));
|
|
107
|
-
function benefitArticlesSubscriberToJSON(benefitArticlesSubscriber) {
|
|
108
|
-
return JSON.stringify(exports.BenefitArticlesSubscriber$outboundSchema.parse(benefitArticlesSubscriber));
|
|
109
|
-
}
|
|
110
|
-
function benefitArticlesSubscriberFromJSON(jsonString) {
|
|
111
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BenefitArticlesSubscriber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BenefitArticlesSubscriber' from JSON`);
|
|
112
|
-
}
|
|
113
|
-
//# sourceMappingURL=benefitarticlessubscriber.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitarticlessubscriber.js","sourceRoot":"","sources":["../../src/models/components/benefitarticlessubscriber.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA0KH,0EAMC;AAED,8EAQC;AAxLD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAIjD,qGAKkD;AAClD,2EAKqC;AACrC,uDAK2B;AAEd,QAAA,IAAI,GAAG;IAClB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAyCX,gBAAgB;AACH,QAAA,kBAAkB,GAAiC,CAAC,CAAC,UAAU,CAC1E,YAAI,CACL,CAAC;AAEF,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,0BAAkB,CAAC;AAErB;;;GAGG;AACH,IAAiB,KAAK,CAKrB;AALD,WAAiB,KAAK;IACpB,oDAAoD;IACvC,mBAAa,GAAG,0BAAkB,CAAC;I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,CAC/C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
/**
|
|
5
|
-
* Properties available to subscribers for a benefit of type `articles`.
|
|
6
|
-
*/
|
|
7
|
-
export type BenefitArticlesSubscriberProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* Whether the user can access paid articles.
|
|
10
|
-
*/
|
|
11
|
-
paidArticles: boolean;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const BenefitArticlesSubscriberProperties$inboundSchema: z.ZodType<BenefitArticlesSubscriberProperties, z.ZodTypeDef, unknown>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export type BenefitArticlesSubscriberProperties$Outbound = {
|
|
17
|
-
paid_articles: boolean;
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const BenefitArticlesSubscriberProperties$outboundSchema: z.ZodType<BenefitArticlesSubscriberProperties$Outbound, z.ZodTypeDef, BenefitArticlesSubscriberProperties>;
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
-
*/
|
|
25
|
-
export declare namespace BenefitArticlesSubscriberProperties$ {
|
|
26
|
-
/** @deprecated use `BenefitArticlesSubscriberProperties$inboundSchema` instead. */
|
|
27
|
-
const inboundSchema: z.ZodType<BenefitArticlesSubscriberProperties, z.ZodTypeDef, unknown>;
|
|
28
|
-
/** @deprecated use `BenefitArticlesSubscriberProperties$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.ZodType<BenefitArticlesSubscriberProperties$Outbound, z.ZodTypeDef, BenefitArticlesSubscriberProperties>;
|
|
30
|
-
/** @deprecated use `BenefitArticlesSubscriberProperties$Outbound` instead. */
|
|
31
|
-
type Outbound = BenefitArticlesSubscriberProperties$Outbound;
|
|
32
|
-
}
|
|
33
|
-
export declare function benefitArticlesSubscriberPropertiesToJSON(benefitArticlesSubscriberProperties: BenefitArticlesSubscriberProperties): string;
|
|
34
|
-
export declare function benefitArticlesSubscriberPropertiesFromJSON(jsonString: string): SafeParseResult<BenefitArticlesSubscriberProperties, SDKValidationError>;
|
|
35
|
-
//# sourceMappingURL=benefitarticlessubscriberproperties.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitarticlessubscriberproperties.d.ts","sourceRoot":"","sources":["../../src/models/components/benefitarticlessubscriberproperties.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAChD;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4CAA4C,GAAG;IACzD,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,4CAA4C,EAC5C,CAAC,CAAC,UAAU,EACZ,mCAAmC,CAOnC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oCAAoC,CAAC;IACpD,mFAAmF;IAC5E,MAAM,aAAa,uEACyB,CAAC;IACpD,oFAAoF;IAC7E,MAAM,cAAc,4GACyB,CAAC;IACrD,8EAA8E;IAC9E,KAAY,QAAQ,GAAG,4CAA4C,CAAC;CACrE;AAED,wBAAgB,yCAAyC,CACvD,mCAAmC,EAAE,mCAAmC,GACvE,MAAM,CAMR;AAED,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mCAAmC,EAAE,kBAAkB,CAAC,CAO1E"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.BenefitArticlesSubscriberProperties$ = exports.BenefitArticlesSubscriberProperties$outboundSchema = exports.BenefitArticlesSubscriberProperties$inboundSchema = void 0;
|
|
30
|
-
exports.benefitArticlesSubscriberPropertiesToJSON = benefitArticlesSubscriberPropertiesToJSON;
|
|
31
|
-
exports.benefitArticlesSubscriberPropertiesFromJSON = benefitArticlesSubscriberPropertiesFromJSON;
|
|
32
|
-
const z = __importStar(require("zod"));
|
|
33
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
-
/** @internal */
|
|
36
|
-
exports.BenefitArticlesSubscriberProperties$inboundSchema = z.object({
|
|
37
|
-
paid_articles: z.boolean(),
|
|
38
|
-
}).transform((v) => {
|
|
39
|
-
return (0, primitives_js_1.remap)(v, {
|
|
40
|
-
"paid_articles": "paidArticles",
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
/** @internal */
|
|
44
|
-
exports.BenefitArticlesSubscriberProperties$outboundSchema = z.object({
|
|
45
|
-
paidArticles: z.boolean(),
|
|
46
|
-
}).transform((v) => {
|
|
47
|
-
return (0, primitives_js_1.remap)(v, {
|
|
48
|
-
paidArticles: "paid_articles",
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
-
*/
|
|
55
|
-
var BenefitArticlesSubscriberProperties$;
|
|
56
|
-
(function (BenefitArticlesSubscriberProperties$) {
|
|
57
|
-
/** @deprecated use `BenefitArticlesSubscriberProperties$inboundSchema` instead. */
|
|
58
|
-
BenefitArticlesSubscriberProperties$.inboundSchema = exports.BenefitArticlesSubscriberProperties$inboundSchema;
|
|
59
|
-
/** @deprecated use `BenefitArticlesSubscriberProperties$outboundSchema` instead. */
|
|
60
|
-
BenefitArticlesSubscriberProperties$.outboundSchema = exports.BenefitArticlesSubscriberProperties$outboundSchema;
|
|
61
|
-
})(BenefitArticlesSubscriberProperties$ || (exports.BenefitArticlesSubscriberProperties$ = BenefitArticlesSubscriberProperties$ = {}));
|
|
62
|
-
function benefitArticlesSubscriberPropertiesToJSON(benefitArticlesSubscriberProperties) {
|
|
63
|
-
return JSON.stringify(exports.BenefitArticlesSubscriberProperties$outboundSchema.parse(benefitArticlesSubscriberProperties));
|
|
64
|
-
}
|
|
65
|
-
function benefitArticlesSubscriberPropertiesFromJSON(jsonString) {
|
|
66
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BenefitArticlesSubscriberProperties$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BenefitArticlesSubscriberProperties' from JSON`);
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=benefitarticlessubscriberproperties.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitarticlessubscriberproperties.js","sourceRoot":"","sources":["../../src/models/components/benefitarticlessubscriberproperties.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEH,8FAQC;AAED,kGASC;AAjFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAcjD,gBAAgB;AACH,QAAA,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;IACX,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE;CAC3B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oCAAoC,CASpD;AATD,WAAiB,oCAAoC;IACnD,mFAAmF;IACtE,kDAAa,GACxB,yDAAiD,CAAC;IACpD,oFAAoF;IACvE,mDAAc,GACzB,0DAAkD,CAAC;AAGvD,CAAC,EATgB,oCAAoC,oDAApC,oCAAoC,QASpD;AAED,SAAgB,yCAAyC,CACvD,mCAAwE;IAExE,OAAO,IAAI,CAAC,SAAS,CACnB,0DAAkD,CAAC,KAAK,CACtD,mCAAmC,CACpC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,2CAA2C,CACzD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,yDAAiD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,iEAAiE,CAClE,CAAC;AACJ,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export declare const BenefitArticlesUpdateType: {
|
|
6
|
-
readonly Articles: "articles";
|
|
7
|
-
};
|
|
8
|
-
export type BenefitArticlesUpdateType = ClosedEnum<typeof BenefitArticlesUpdateType>;
|
|
9
|
-
export type BenefitArticlesUpdate = {
|
|
10
|
-
/**
|
|
11
|
-
* The description of the benefit. Will be displayed on products having this benefit.
|
|
12
|
-
*/
|
|
13
|
-
description?: string | null | undefined;
|
|
14
|
-
type?: "articles" | undefined;
|
|
15
|
-
};
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const BenefitArticlesUpdateType$inboundSchema: z.ZodNativeEnum<typeof BenefitArticlesUpdateType>;
|
|
18
|
-
/** @internal */
|
|
19
|
-
export declare const BenefitArticlesUpdateType$outboundSchema: z.ZodNativeEnum<typeof BenefitArticlesUpdateType>;
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
23
|
-
*/
|
|
24
|
-
export declare namespace BenefitArticlesUpdateType$ {
|
|
25
|
-
/** @deprecated use `BenefitArticlesUpdateType$inboundSchema` instead. */
|
|
26
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
27
|
-
readonly Articles: "articles";
|
|
28
|
-
}>;
|
|
29
|
-
/** @deprecated use `BenefitArticlesUpdateType$outboundSchema` instead. */
|
|
30
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
31
|
-
readonly Articles: "articles";
|
|
32
|
-
}>;
|
|
33
|
-
}
|
|
34
|
-
/** @internal */
|
|
35
|
-
export declare const BenefitArticlesUpdate$inboundSchema: z.ZodType<BenefitArticlesUpdate, z.ZodTypeDef, unknown>;
|
|
36
|
-
/** @internal */
|
|
37
|
-
export type BenefitArticlesUpdate$Outbound = {
|
|
38
|
-
description?: string | null | undefined;
|
|
39
|
-
type: "articles";
|
|
40
|
-
};
|
|
41
|
-
/** @internal */
|
|
42
|
-
export declare const BenefitArticlesUpdate$outboundSchema: z.ZodType<BenefitArticlesUpdate$Outbound, z.ZodTypeDef, BenefitArticlesUpdate>;
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
-
*/
|
|
47
|
-
export declare namespace BenefitArticlesUpdate$ {
|
|
48
|
-
/** @deprecated use `BenefitArticlesUpdate$inboundSchema` instead. */
|
|
49
|
-
const inboundSchema: z.ZodType<BenefitArticlesUpdate, z.ZodTypeDef, unknown>;
|
|
50
|
-
/** @deprecated use `BenefitArticlesUpdate$outboundSchema` instead. */
|
|
51
|
-
const outboundSchema: z.ZodType<BenefitArticlesUpdate$Outbound, z.ZodTypeDef, BenefitArticlesUpdate>;
|
|
52
|
-
/** @deprecated use `BenefitArticlesUpdate$Outbound` instead. */
|
|
53
|
-
type Outbound = BenefitArticlesUpdate$Outbound;
|
|
54
|
-
}
|
|
55
|
-
export declare function benefitArticlesUpdateToJSON(benefitArticlesUpdate: BenefitArticlesUpdate): string;
|
|
56
|
-
export declare function benefitArticlesUpdateFromJSON(jsonString: string): SafeParseResult<BenefitArticlesUpdate, SDKValidationError>;
|
|
57
|
-
//# sourceMappingURL=benefitarticlesupdate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitarticlesupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/benefitarticlesupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,yBAAyB;;CAE5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAChD,OAAO,yBAAyB,CACjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,aAAa,CACnE,OAAO,yBAAyB,CACS,CAAC;AAE5C,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,aAAa,CACpE,OAAO,yBAAyB,CACS,CAAC;AAE5C;;;GAGG;AACH,yBAAiB,0BA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