@polar-sh/sdk 0.19.0 → 0.19.2
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 +9 -0
- package/docs/sdks/benefits/README.md +0 -1
- package/docs/sdks/customersessions/README.md +85 -0
- package/funcs/customerSessionsCreate.d.ts +16 -0
- package/funcs/customerSessionsCreate.d.ts.map +1 -0
- package/funcs/customerSessionsCreate.js +100 -0
- package/funcs/customerSessionsCreate.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/benefitcreate.d.ts +4 -4
- package/models/components/benefitcreate.d.ts.map +1 -1
- package/models/components/benefitcreate.js +6 -6
- package/models/components/benefitcreate.js.map +1 -1
- package/models/components/benefitcustom.d.ts +1 -1
- package/models/components/benefitcustomcreate.d.ts +0 -5
- package/models/components/benefitcustomcreate.d.ts.map +1 -1
- package/models/components/benefitcustomcreate.js +0 -4
- package/models/components/benefitcustomcreate.js.map +1 -1
- package/models/components/benefitgithubrepositoryproperties.d.ts +5 -0
- package/models/components/benefitgithubrepositoryproperties.d.ts.map +1 -1
- package/models/components/benefitgithubrepositoryproperties.js +4 -0
- package/models/components/benefitgithubrepositoryproperties.js.map +1 -1
- package/models/components/checkout.d.ts +27 -0
- package/models/components/checkout.d.ts.map +1 -1
- package/models/components/checkout.js +28 -1
- package/models/components/checkout.js.map +1 -1
- package/models/components/checkoutlinkupdate.d.ts +0 -14
- package/models/components/checkoutlinkupdate.d.ts.map +1 -1
- package/models/components/checkoutlinkupdate.js.map +1 -1
- package/models/components/checkoutpricecreate.d.ts +41 -0
- package/models/components/checkoutpricecreate.d.ts.map +1 -1
- package/models/components/checkoutpricecreate.js +28 -1
- package/models/components/checkoutpricecreate.js.map +1 -1
- package/models/components/checkoutproductcreate.d.ts +41 -0
- package/models/components/checkoutproductcreate.d.ts.map +1 -1
- package/models/components/checkoutproductcreate.js +28 -1
- package/models/components/checkoutproductcreate.js.map +1 -1
- package/models/components/checkoutupdate.d.ts +38 -11
- package/models/components/checkoutupdate.d.ts.map +1 -1
- package/models/components/checkoutupdate.js +28 -1
- package/models/components/checkoutupdate.js.map +1 -1
- package/models/components/customer.d.ts +13 -13
- package/models/components/customer.d.ts.map +1 -1
- package/models/components/customer.js +16 -16
- package/models/components/customer.js.map +1 -1
- package/models/components/customersession.d.ts +57 -0
- package/models/components/customersession.d.ts.map +1 -0
- package/models/components/customersession.js +87 -0
- package/models/components/customersession.js.map +1 -0
- package/models/components/customersessioncreate.d.ts +35 -0
- package/models/components/customersessioncreate.d.ts.map +1 -0
- package/models/components/customersessioncreate.js +68 -0
- package/models/components/customersessioncreate.js.map +1 -0
- package/models/components/customfieldupdatecheckbox.d.ts +0 -14
- package/models/components/customfieldupdatecheckbox.d.ts.map +1 -1
- package/models/components/customfieldupdatecheckbox.js.map +1 -1
- package/models/components/customfieldupdatedate.d.ts +0 -14
- package/models/components/customfieldupdatedate.d.ts.map +1 -1
- package/models/components/customfieldupdatedate.js.map +1 -1
- package/models/components/customfieldupdatenumber.d.ts +0 -14
- package/models/components/customfieldupdatenumber.d.ts.map +1 -1
- package/models/components/customfieldupdatenumber.js.map +1 -1
- package/models/components/customfieldupdateselect.d.ts +0 -14
- package/models/components/customfieldupdateselect.d.ts.map +1 -1
- package/models/components/customfieldupdateselect.js.map +1 -1
- package/models/components/customfieldupdatetext.d.ts +0 -14
- package/models/components/customfieldupdatetext.d.ts.map +1 -1
- package/models/components/customfieldupdatetext.js.map +1 -1
- package/models/components/discountupdate.d.ts +0 -14
- package/models/components/discountupdate.d.ts.map +1 -1
- package/models/components/discountupdate.js.map +1 -1
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.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/ordersubscription.d.ts +5 -0
- package/models/components/ordersubscription.d.ts.map +1 -1
- package/models/components/ordersubscription.js +4 -0
- package/models/components/ordersubscription.js.map +1 -1
- package/models/components/orderuser.d.ts +2 -0
- package/models/components/orderuser.d.ts.map +1 -1
- package/models/components/orderuser.js +4 -0
- package/models/components/orderuser.js.map +1 -1
- package/models/components/productupdate.d.ts +0 -14
- package/models/components/productupdate.d.ts.map +1 -1
- package/models/components/productupdate.js.map +1 -1
- package/models/components/scope.d.ts +3 -0
- package/models/components/scope.d.ts.map +1 -1
- package/models/components/scope.js +1 -0
- package/models/components/scope.js.map +1 -1
- package/models/components/subscriptionuser.d.ts +2 -0
- package/models/components/subscriptionuser.d.ts.map +1 -1
- package/models/components/subscriptionuser.js +4 -0
- package/models/components/subscriptionuser.js.map +1 -1
- package/package.json +1 -1
- package/sdk/customersessions.d.ts +12 -0
- package/sdk/customersessions.d.ts.map +1 -0
- package/sdk/customersessions.js +22 -0
- package/sdk/customersessions.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +5 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/customerSessionsCreate.ts +132 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/benefitcreate.ts +14 -14
- package/src/models/components/benefitcustom.ts +1 -1
- package/src/models/components/benefitcustomcreate.ts +0 -9
- package/src/models/components/benefitgithubrepositoryproperties.ts +9 -0
- package/src/models/components/checkout.ts +60 -0
- package/src/models/components/checkoutlinkupdate.ts +0 -14
- package/src/models/components/checkoutpricecreate.ts +82 -0
- package/src/models/components/checkoutproductcreate.ts +82 -0
- package/src/models/components/checkoutupdate.ts +79 -11
- package/src/models/components/customer.ts +21 -21
- package/src/models/components/customersession.ts +126 -0
- package/src/models/components/customersessioncreate.ts +81 -0
- package/src/models/components/customfieldupdatecheckbox.ts +0 -14
- package/src/models/components/customfieldupdatedate.ts +0 -14
- package/src/models/components/customfieldupdatenumber.ts +0 -14
- package/src/models/components/customfieldupdateselect.ts +0 -14
- package/src/models/components/customfieldupdatetext.ts +0 -14
- package/src/models/components/discountupdate.ts +0 -14
- package/src/models/components/index.ts +2 -0
- 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/ordersubscription.ts +9 -0
- package/src/models/components/orderuser.ts +6 -0
- package/src/models/components/productupdate.ts +0 -14
- package/src/models/components/scope.ts +1 -0
- package/src/models/components/subscriptionuser.ts +6 -0
- package/src/sdk/customersessions.ts +27 -0
- package/src/sdk/sdk.ts +6 -0
package/README.md
CHANGED
|
@@ -267,6 +267,10 @@ async function run() {
|
|
|
267
267
|
required: true,
|
|
268
268
|
},
|
|
269
269
|
],
|
|
270
|
+
customerMetadata: {
|
|
271
|
+
"key": "<value>",
|
|
272
|
+
"key1": "<value>",
|
|
273
|
+
},
|
|
270
274
|
},
|
|
271
275
|
});
|
|
272
276
|
|
|
@@ -399,6 +403,10 @@ app.post("/webhook", express.raw({ type: "application/json" }), (req: Request, r
|
|
|
399
403
|
* [update](docs/sdks/customers/README.md#update) - Update Customer
|
|
400
404
|
* [delete](docs/sdks/customers/README.md#delete) - Delete Customer
|
|
401
405
|
|
|
406
|
+
### [customerSessions](docs/sdks/customersessions/README.md)
|
|
407
|
+
|
|
408
|
+
* [create](docs/sdks/customersessions/README.md#create) - Create Customer Session
|
|
409
|
+
|
|
402
410
|
### [customFields](docs/sdks/customfields/README.md)
|
|
403
411
|
|
|
404
412
|
* [list](docs/sdks/customfields/README.md#list) - List Custom Fields
|
|
@@ -547,6 +555,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
547
555
|
- [`customerPortalSubscriptionsUpdate`](docs/sdks/polarsubscriptions/README.md#update) - Update Subscription
|
|
548
556
|
- [`customersCreate`](docs/sdks/customers/README.md#create) - Create Customer
|
|
549
557
|
- [`customersDelete`](docs/sdks/customers/README.md#delete) - Delete Customer
|
|
558
|
+
- [`customerSessionsCreate`](docs/sdks/customersessions/README.md#create) - Create Customer Session
|
|
550
559
|
- [`customersGet`](docs/sdks/customers/README.md#get) - Get Customer
|
|
551
560
|
- [`customersList`](docs/sdks/customers/README.md#list) - List Customers
|
|
552
561
|
- [`customersUpdate`](docs/sdks/customers/README.md#update) - Update Customer
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# CustomerSessions
|
|
2
|
+
(*customerSessions*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
### Available Operations
|
|
7
|
+
|
|
8
|
+
* [create](#create) - Create Customer Session
|
|
9
|
+
|
|
10
|
+
## create
|
|
11
|
+
|
|
12
|
+
Create a customer session.
|
|
13
|
+
|
|
14
|
+
### Example Usage
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { Polar } from "@polar-sh/sdk";
|
|
18
|
+
|
|
19
|
+
const polar = new Polar({
|
|
20
|
+
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
async function run() {
|
|
24
|
+
const result = await polar.customerSessions.create({
|
|
25
|
+
customerId: "<value>",
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
// Handle the result
|
|
29
|
+
console.log(result);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
run();
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Standalone function
|
|
36
|
+
|
|
37
|
+
The standalone function version of this method:
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
import { PolarCore } from "@polar-sh/sdk/core.js";
|
|
41
|
+
import { customerSessionsCreate } from "@polar-sh/sdk/funcs/customerSessionsCreate.js";
|
|
42
|
+
|
|
43
|
+
// Use `PolarCore` for best tree-shaking performance.
|
|
44
|
+
// You can create one instance of it to use across an application.
|
|
45
|
+
const polar = new PolarCore({
|
|
46
|
+
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
async function run() {
|
|
50
|
+
const res = await customerSessionsCreate(polar, {
|
|
51
|
+
customerId: "<value>",
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
if (!res.ok) {
|
|
55
|
+
throw res.error;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const { value: result } = res;
|
|
59
|
+
|
|
60
|
+
// Handle the result
|
|
61
|
+
console.log(result);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
run();
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Parameters
|
|
68
|
+
|
|
69
|
+
| Parameter | Type | Required | Description |
|
|
70
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
71
|
+
| `request` | [components.CustomerSessionCreate](../../models/components/customersessioncreate.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
72
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
73
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
74
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
75
|
+
|
|
76
|
+
### Response
|
|
77
|
+
|
|
78
|
+
**Promise\<[components.CustomerSession](../../models/components/customersession.md)\>**
|
|
79
|
+
|
|
80
|
+
### Errors
|
|
81
|
+
|
|
82
|
+
| Error Type | Status Code | Content Type |
|
|
83
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
84
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
85
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PolarCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import { Result } from "../types/fp.js";
|
|
9
|
+
/**
|
|
10
|
+
* Create Customer Session
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* Create a customer session.
|
|
14
|
+
*/
|
|
15
|
+
export declare function customerSessionsCreate(client: PolarCore, request: components.CustomerSessionCreate, options?: RequestOptions): Promise<Result<components.CustomerSession, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
16
|
+
//# sourceMappingURL=customerSessionsCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customerSessionsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/customerSessionsCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,eAAe,EACxB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAqFA"}
|
|
@@ -0,0 +1,100 @@
|
|
|
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.customerSessionsCreate = customerSessionsCreate;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
33
|
+
const security_js_1 = require("../lib/security.js");
|
|
34
|
+
const url_js_1 = require("../lib/url.js");
|
|
35
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
36
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
|
+
/**
|
|
38
|
+
* Create Customer Session
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* Create a customer session.
|
|
42
|
+
*/
|
|
43
|
+
async function customerSessionsCreate(client, request, options) {
|
|
44
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.CustomerSessionCreate$outboundSchema.parse(value), "Input validation failed");
|
|
45
|
+
if (!parsed.ok) {
|
|
46
|
+
return parsed;
|
|
47
|
+
}
|
|
48
|
+
const payload = parsed.value;
|
|
49
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
50
|
+
const path = (0, url_js_1.pathToFunc)("/v1/customer-sessions/")();
|
|
51
|
+
const headers = new Headers({
|
|
52
|
+
"Content-Type": "application/json",
|
|
53
|
+
Accept: "application/json",
|
|
54
|
+
});
|
|
55
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.accessToken);
|
|
56
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
57
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
58
|
+
const context = {
|
|
59
|
+
operationID: "customer-sessions:create",
|
|
60
|
+
oAuth2Scopes: [],
|
|
61
|
+
resolvedSecurity: requestSecurity,
|
|
62
|
+
securitySource: client._options.accessToken,
|
|
63
|
+
retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
|
|
64
|
+
|| client._options.retryConfig
|
|
65
|
+
|| { strategy: "none" },
|
|
66
|
+
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
67
|
+
};
|
|
68
|
+
const requestRes = client._createRequest(context, {
|
|
69
|
+
security: requestSecurity,
|
|
70
|
+
method: "POST",
|
|
71
|
+
baseURL: options === null || options === void 0 ? void 0 : options.serverURL,
|
|
72
|
+
path: path,
|
|
73
|
+
headers: headers,
|
|
74
|
+
body: body,
|
|
75
|
+
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
|
|
76
|
+
}, options);
|
|
77
|
+
if (!requestRes.ok) {
|
|
78
|
+
return requestRes;
|
|
79
|
+
}
|
|
80
|
+
const req = requestRes.value;
|
|
81
|
+
const doResult = await client._do(req, {
|
|
82
|
+
context,
|
|
83
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
84
|
+
retryConfig: context.retryConfig,
|
|
85
|
+
retryCodes: context.retryCodes,
|
|
86
|
+
});
|
|
87
|
+
if (!doResult.ok) {
|
|
88
|
+
return doResult;
|
|
89
|
+
}
|
|
90
|
+
const response = doResult.value;
|
|
91
|
+
const responseFields = {
|
|
92
|
+
HttpMeta: { Response: response, Request: req },
|
|
93
|
+
};
|
|
94
|
+
const [result] = await M.match(M.json(201, components.CustomerSession$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail(["4XX", "5XX"]))(response, { extraFields: responseFields });
|
|
95
|
+
if (!result.ok) {
|
|
96
|
+
return result;
|
|
97
|
+
}
|
|
98
|
+
return result;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=customerSessionsCreate.js.map
|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AC,EAAE,EAAE,CAAC;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,6BAA6B,CAAC,EACrD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/lib/config.d.ts
CHANGED
|
@@ -38,8 +38,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
38
38
|
export declare const SDK_METADATA: {
|
|
39
39
|
readonly language: "typescript";
|
|
40
40
|
readonly openapiDocVersion: "0.1.0";
|
|
41
|
-
readonly sdkVersion: "0.19.
|
|
42
|
-
readonly genVersion: "2.
|
|
43
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.19.
|
|
41
|
+
readonly sdkVersion: "0.19.2";
|
|
42
|
+
readonly genVersion: "2.481.0";
|
|
43
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.19.2 2.481.0 0.1.0 @polar-sh/sdk";
|
|
44
44
|
};
|
|
45
45
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -35,8 +35,8 @@ function serverURLFromOptions(options) {
|
|
|
35
35
|
exports.SDK_METADATA = {
|
|
36
36
|
language: "typescript",
|
|
37
37
|
openapiDocVersion: "0.1.0",
|
|
38
|
-
sdkVersion: "0.19.
|
|
39
|
-
genVersion: "2.
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.19.
|
|
38
|
+
sdkVersion: "0.19.2",
|
|
39
|
+
genVersion: "2.481.0",
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 0.19.2 2.481.0 0.1.0 @polar-sh/sdk",
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.js.map
|
|
@@ -9,6 +9,8 @@ import { BenefitGitHubRepositoryCreate, BenefitGitHubRepositoryCreate$Outbound }
|
|
|
9
9
|
import { BenefitLicenseKeysCreate, BenefitLicenseKeysCreate$Outbound } from "./benefitlicensekeyscreate.js";
|
|
10
10
|
export type BenefitCreate = (BenefitAdsCreate & {
|
|
11
11
|
type: "ads";
|
|
12
|
+
}) | (BenefitCustomCreate & {
|
|
13
|
+
type: "custom";
|
|
12
14
|
}) | (BenefitDiscordCreate & {
|
|
13
15
|
type: "discord";
|
|
14
16
|
}) | (BenefitDownloadablesCreate & {
|
|
@@ -17,14 +19,14 @@ export type BenefitCreate = (BenefitAdsCreate & {
|
|
|
17
19
|
type: "github_repository";
|
|
18
20
|
}) | (BenefitLicenseKeysCreate & {
|
|
19
21
|
type: "license_keys";
|
|
20
|
-
}) | (BenefitCustomCreate & {
|
|
21
|
-
type: "custom";
|
|
22
22
|
});
|
|
23
23
|
/** @internal */
|
|
24
24
|
export declare const BenefitCreate$inboundSchema: z.ZodType<BenefitCreate, z.ZodTypeDef, unknown>;
|
|
25
25
|
/** @internal */
|
|
26
26
|
export type BenefitCreate$Outbound = (BenefitAdsCreate$Outbound & {
|
|
27
27
|
type: "ads";
|
|
28
|
+
}) | (BenefitCustomCreate$Outbound & {
|
|
29
|
+
type: "custom";
|
|
28
30
|
}) | (BenefitDiscordCreate$Outbound & {
|
|
29
31
|
type: "discord";
|
|
30
32
|
}) | (BenefitDownloadablesCreate$Outbound & {
|
|
@@ -33,8 +35,6 @@ export type BenefitCreate$Outbound = (BenefitAdsCreate$Outbound & {
|
|
|
33
35
|
type: "github_repository";
|
|
34
36
|
}) | (BenefitLicenseKeysCreate$Outbound & {
|
|
35
37
|
type: "license_keys";
|
|
36
|
-
}) | (BenefitCustomCreate$Outbound & {
|
|
37
|
-
type: "custom";
|
|
38
38
|
});
|
|
39
39
|
/** @internal */
|
|
40
40
|
export declare const BenefitCreate$outboundSchema: z.ZodType<BenefitCreate$Outbound, z.ZodTypeDef, BenefitCreate>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefitcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/benefitcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,6BAA6B,EAE7B,sCAAsC,EAEvC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,wBAAwB,EAExB,iCAAiC,EAElC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,aAAa,GACrB,CAAC,gBAAgB,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC,GACpC,CAAC,
|
|
1
|
+
{"version":3,"file":"benefitcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/benefitcreate.ts"],"names":[],"mappings":"AAIA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AK,CAAA;CAAE,CAAC,GAC7C,CAAC,4BAA4B,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,GACnD,CAAC,6BAA6B,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,GACrD,CAAC,mCAAmC,GAAG;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,CAAC,GACjE,CAAC,sCAAsC,GAAG;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,CAAC,GACxE,CAAC,iCAAiC,GAAG;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CA8Bb,CAAC;AAEH;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -40,6 +40,9 @@ const benefitlicensekeyscreate_js_1 = require("./benefitlicensekeyscreate.js");
|
|
|
40
40
|
/** @internal */
|
|
41
41
|
exports.BenefitCreate$inboundSchema = z.union([
|
|
42
42
|
benefitadscreate_js_1.BenefitAdsCreate$inboundSchema.and(z.object({ type: z.literal("ads") }).transform((v) => ({ type: v.type }))),
|
|
43
|
+
benefitcustomcreate_js_1.BenefitCustomCreate$inboundSchema.and(z.object({ type: z.literal("custom") }).transform((v) => ({
|
|
44
|
+
type: v.type,
|
|
45
|
+
}))),
|
|
43
46
|
benefitdiscordcreate_js_1.BenefitDiscordCreate$inboundSchema.and(z.object({ type: z.literal("discord") }).transform((v) => ({
|
|
44
47
|
type: v.type,
|
|
45
48
|
}))),
|
|
@@ -52,13 +55,13 @@ exports.BenefitCreate$inboundSchema = z.union([
|
|
|
52
55
|
benefitlicensekeyscreate_js_1.BenefitLicenseKeysCreate$inboundSchema.and(z.object({ type: z.literal("license_keys") }).transform((v) => ({
|
|
53
56
|
type: v.type,
|
|
54
57
|
}))),
|
|
55
|
-
benefitcustomcreate_js_1.BenefitCustomCreate$inboundSchema.and(z.object({ type: z.literal("custom") }).transform((v) => ({
|
|
56
|
-
type: v.type,
|
|
57
|
-
}))),
|
|
58
58
|
]);
|
|
59
59
|
/** @internal */
|
|
60
60
|
exports.BenefitCreate$outboundSchema = z.union([
|
|
61
61
|
benefitadscreate_js_1.BenefitAdsCreate$outboundSchema.and(z.object({ type: z.literal("ads") }).transform((v) => ({ type: v.type }))),
|
|
62
|
+
benefitcustomcreate_js_1.BenefitCustomCreate$outboundSchema.and(z.object({ type: z.literal("custom") }).transform((v) => ({
|
|
63
|
+
type: v.type,
|
|
64
|
+
}))),
|
|
62
65
|
benefitdiscordcreate_js_1.BenefitDiscordCreate$outboundSchema.and(z.object({ type: z.literal("discord") }).transform((v) => ({
|
|
63
66
|
type: v.type,
|
|
64
67
|
}))),
|
|
@@ -71,9 +74,6 @@ exports.BenefitCreate$outboundSchema = z.union([
|
|
|
71
74
|
benefitlicensekeyscreate_js_1.BenefitLicenseKeysCreate$outboundSchema.and(z.object({ type: z.literal("license_keys") }).transform((v) => ({
|
|
72
75
|
type: v.type,
|
|
73
76
|
}))),
|
|
74
|
-
benefitcustomcreate_js_1.BenefitCustomCreate$outboundSchema.and(z.object({ type: z.literal("custom") }).transform((v) => ({
|
|
75
|
-
type: v.type,
|
|
76
|
-
}))),
|
|
77
77
|
]);
|
|
78
78
|
/**
|
|
79
79
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefitcreate.js","sourceRoot":"","sources":["../../src/models/components/benefitcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAiJH,kDAEC;AAED,sDAQC;AA3JD,uCAAyB;AACzB,qDAAiD;AAGjD,+DAK+B;AAC/B,qEAKkC;AAClC,uEAKmC;AACnC,mFAKyC;AACzC,yFAK4C;AAC5C,+EAKuC;AAUvC,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,KAAK,CAAC;IACV,oDAA8B,CAAC,GAAG,CAChC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAC1E;IACD,
|
|
1
|
+
{"version":3,"file":"benefitcreate.js","sourceRoot":"","sources":["../../src/models/components/benefitcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAiJH,kDAEC;AAED,sDAQC;AA3JD,uCAAyB;AACzB,qDAAiD;AAGjD,+DAK+B;AAC/B,qEAKkC;AAClC,uEAKmC;AACnC,mFAKyC;AACzC,yFAK4C;AAC5C,+EAKuC;AAUvC,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,KAAK,CAAC;IACV,oDAA8B,CAAC,GAAG,CAChC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAC1E;IACD,0DAAiC,CAAC,GAAG,CACnC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,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EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9D,IAAI,EAAE,CAAC,CAAC,IAAI;KACb,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,cAAc,CAO9B;AAPD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,mCAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,oCAA4B,CAAC;AAG7D,CAAC,EAPgB,cAAc,8BAAd,cAAc,QAO9B;AAED,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -49,7 +49,7 @@ export type BenefitCustom = {
|
|
|
49
49
|
*/
|
|
50
50
|
properties: BenefitCustomProperties;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
53
53
|
*/
|
|
54
54
|
isTaxApplicable: boolean;
|
|
55
55
|
};
|
|
@@ -20,10 +20,6 @@ export type BenefitCustomCreate = {
|
|
|
20
20
|
* The ID of the organization owning the benefit. **Required unless you use an organization token.**
|
|
21
21
|
*/
|
|
22
22
|
organizationId?: string | null | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Whether the benefit is taxable.
|
|
25
|
-
*/
|
|
26
|
-
isTaxApplicable: boolean;
|
|
27
23
|
/**
|
|
28
24
|
* Properties for creating a benefit of type `custom`.
|
|
29
25
|
*/
|
|
@@ -54,7 +50,6 @@ export type BenefitCustomCreate$Outbound = {
|
|
|
54
50
|
type: "custom";
|
|
55
51
|
description: string;
|
|
56
52
|
organization_id?: string | null | undefined;
|
|
57
|
-
is_tax_applicable: boolean;
|
|
58
53
|
properties: BenefitCustomCreateProperties$Outbound;
|
|
59
54
|
};
|
|
60
55
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefitcustomcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/benefitcustomcreate.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,6BAA6B,EAE7B,sCAAsC,EAEvC,MAAM,oCAAoC,CAAC;AAE5C,eAAO,MAAM,uBAAuB;;CAE1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"benefitcustomcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/benefitcustomcreate.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,E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EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAUnB,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;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -56,12 +56,10 @@ exports.BenefitCustomCreate$inboundSchema = z.object({
|
|
|
56
56
|
type: z.literal("custom").optional(),
|
|
57
57
|
description: z.string(),
|
|
58
58
|
organization_id: z.nullable(z.string()).optional(),
|
|
59
|
-
is_tax_applicable: z.boolean(),
|
|
60
59
|
properties: benefitcustomcreateproperties_js_1.BenefitCustomCreateProperties$inboundSchema,
|
|
61
60
|
}).transform((v) => {
|
|
62
61
|
return (0, primitives_js_1.remap)(v, {
|
|
63
62
|
"organization_id": "organizationId",
|
|
64
|
-
"is_tax_applicable": "isTaxApplicable",
|
|
65
63
|
});
|
|
66
64
|
});
|
|
67
65
|
/** @internal */
|
|
@@ -69,12 +67,10 @@ exports.BenefitCustomCreate$outboundSchema = z.object({
|
|
|
69
67
|
type: z.literal("custom").default("custom"),
|
|
70
68
|
description: z.string(),
|
|
71
69
|
organizationId: z.nullable(z.string()).optional(),
|
|
72
|
-
isTaxApplicable: z.boolean(),
|
|
73
70
|
properties: benefitcustomcreateproperties_js_1.BenefitCustomCreateProperties$outboundSchema,
|
|
74
71
|
}).transform((v) => {
|
|
75
72
|
return (0, primitives_js_1.remap)(v, {
|
|
76
73
|
organizationId: "organization_id",
|
|
77
|
-
isTaxApplicable: "is_tax_applicable",
|
|
78
74
|
});
|
|
79
75
|
});
|
|
80
76
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefitcustomcreate.js","sourceRoot":"","sources":["../../src/models/components/benefitcustomcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"benefitcustomcreate.js","sourceRoot":"","sources":["../../src/models/components/benefitcustomcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAmHH,8DAMC;AAED,kEAQC;AAjID,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAIjD,yFAK4C;AAE/B,QAAA,uBAAuB,GAAG;IACrC,MAAM,EAAE,QAAQ;CACR,CAAC;AAwBX,gBAAgB;AACH,QAAA,qCAAqC,GAE9C,CAAC,CAAC,UAAU,CAAC,+BAAuB,CAAC,CAAC;AAE1C,gBAAgB;AACH,QAAA,sCAAsC,GAE/C,6CAAqC,CAAC;AAE1C;;;GAGG;AACH,IAAiB,wBAAwB,CAKxC;AALD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,6CAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,8CAAsC,CAAC;AACvE,CAAC,EALgB,wBAAwB,wCAAxB,wBAAwB,QAKxC;AAED,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;IACpC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,8EAA2C;CACxD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,gBAAgB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC3C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,UAAU,EAAE,+EAA4C;CACzD,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,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;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -32,6 +32,10 @@ export type BenefitGitHubRepositoryProperties = {
|
|
|
32
32
|
* The permission level to grant. Read more about roles and their permissions on [GitHub documentation](https://docs.github.com/en/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/repository-roles-for-an-organization#permissions-for-each-role).
|
|
33
33
|
*/
|
|
34
34
|
permission: Permission;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
37
|
+
*/
|
|
38
|
+
repositoryId?: string | null | undefined;
|
|
35
39
|
};
|
|
36
40
|
/** @internal */
|
|
37
41
|
export declare const Permission$inboundSchema: z.ZodNativeEnum<typeof Permission>;
|
|
@@ -66,6 +70,7 @@ export type BenefitGitHubRepositoryProperties$Outbound = {
|
|
|
66
70
|
repository_owner: string;
|
|
67
71
|
repository_name: string;
|
|
68
72
|
permission: string;
|
|
73
|
+
repository_id?: string | null | undefined;
|
|
69
74
|
};
|
|
70
75
|
/** @internal */
|
|
71
76
|
export declare const BenefitGitHubRepositoryProperties$outboundSchema: z.ZodType<BenefitGitHubRepositoryProperties$Outbound, z.ZodTypeDef, BenefitGitHubRepositoryProperties>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefitgithubrepositoryproperties.d.ts","sourceRoot":"","sources":["../../src/models/components/benefitgithubrepositoryproperties.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;AAErE;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"benefitgithubrepositoryproperties.d.ts","sourceRoot":"","sources":["../../src/models/components/benefitgithubrepositoryproperties.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;AAErE;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC;AAE1B,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC;AAE3B;;;GAGG;AACH,yBAAiB,WAAW,CAAC;IAC3B,0DAA0D;IACnD,MAAM,aAAa;;;;;;MAA2B,CAAC;IACtD,2DAA2D;IACpD,MAAM,cAAc;;;;;;MAA4B,CAAC;CACzD;AAED,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0CAA0C,GAAG;IACvD,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,0CAA0C,EAC1C,CAAC,CAAC,UAAU,EACZ,iCAAiC,CAYjC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kCAAkC,CAAC;IAClD,iFAAiF;IAC1E,MAAM,aAAa,qEAAkD,CAAC;IAC7E,kFAAkF;IAC3E,MAAM,cAAc,wGACuB,CAAC;IACnD,4EAA4E;IAC5E,KAAY,QAAQ,GAAG,0CAA0C,CAAC;CACnE;AAED,wBAAgB,uCAAuC,CACrD,iCAAiC,EAAE,iCAAiC,GACnE,MAAM,CAMR;AAED,wBAAgB,yCAAyC,CACvD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iCAAiC,EAAE,kBAAkB,CAAC,CAMxE"}
|
|
@@ -63,10 +63,12 @@ exports.BenefitGitHubRepositoryProperties$inboundSchema = z.object({
|
|
|
63
63
|
repository_owner: z.string(),
|
|
64
64
|
repository_name: z.string(),
|
|
65
65
|
permission: exports.Permission$inboundSchema,
|
|
66
|
+
repository_id: z.nullable(z.string()).optional(),
|
|
66
67
|
}).transform((v) => {
|
|
67
68
|
return (0, primitives_js_1.remap)(v, {
|
|
68
69
|
"repository_owner": "repositoryOwner",
|
|
69
70
|
"repository_name": "repositoryName",
|
|
71
|
+
"repository_id": "repositoryId",
|
|
70
72
|
});
|
|
71
73
|
});
|
|
72
74
|
/** @internal */
|
|
@@ -74,10 +76,12 @@ exports.BenefitGitHubRepositoryProperties$outboundSchema = z.object({
|
|
|
74
76
|
repositoryOwner: z.string(),
|
|
75
77
|
repositoryName: z.string(),
|
|
76
78
|
permission: exports.Permission$outboundSchema,
|
|
79
|
+
repositoryId: z.nullable(z.string()).optional(),
|
|
77
80
|
}).transform((v) => {
|
|
78
81
|
return (0, primitives_js_1.remap)(v, {
|
|
79
82
|
repositoryOwner: "repository_owner",
|
|
80
83
|
repositoryName: "repository_name",
|
|
84
|
+
repositoryId: "repository_id",
|
|
81
85
|
});
|
|
82
86
|
});
|
|
83
87
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefitgithubrepositoryproperties.js","sourceRoot":"","sources":["../../src/models/components/benefitgithubrepositoryproperties.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"benefitgithubrepositoryproperties.js","sourceRoot":"","sources":["../../src/models/components/benefitgithubrepositoryproperties.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA2HH,0FAQC;AAED,8FAQC;AA3ID,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAKjD;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AA4BX,gBAAgB;AACH,QAAA,wBAAwB,GAAuC,CAAC;KAC1E,UAAU,CAAC,kBAAU,CAAC,CAAC;AAE1B,gBAAgB;AACH,QAAA,yBAAyB,GACpC,gCAAwB,CAAC;AAE3B;;;GAGG;AACH,IAAiB,WAAW,CAK3B;AALD,WAAiB,WAAW;IAC1B,0DAA0D;IAC7C,yBAAa,GAAG,gCAAwB,CAAC;IACtD,2DAA2D;IAC9C,0BAAc,GAAG,iCAAyB,CAAC;AAC1D,CAAC,EALgB,WAAW,2BAAX,WAAW,QAK3B;AAED,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IA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,CACvD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uDAA+C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3E,+DAA+D,CAChE,CAAC;AACJ,CAAC"}
|
|
@@ -17,6 +17,7 @@ export type CheckoutCustomFieldData = {};
|
|
|
17
17
|
export type PaymentProcessorMetadata = {};
|
|
18
18
|
export type CheckoutMetadata = string | number | boolean;
|
|
19
19
|
export type CheckoutDiscount = CheckoutDiscountPercentageOnceForeverDuration | CheckoutDiscountFixedOnceForeverDuration | CheckoutDiscountPercentageRepeatDuration | CheckoutDiscountFixedRepeatDuration;
|
|
20
|
+
export type CustomerMetadata = string | number | boolean;
|
|
20
21
|
/**
|
|
21
22
|
* Checkout session data retrieved using an access token.
|
|
22
23
|
*/
|
|
@@ -130,6 +131,9 @@ export type Checkout = {
|
|
|
130
131
|
discount: CheckoutDiscountPercentageOnceForeverDuration | CheckoutDiscountFixedOnceForeverDuration | CheckoutDiscountPercentageRepeatDuration | CheckoutDiscountFixedRepeatDuration | null;
|
|
131
132
|
subscriptionId: string | null;
|
|
132
133
|
attachedCustomFields: Array<AttachedCustomField>;
|
|
134
|
+
customerMetadata: {
|
|
135
|
+
[k: string]: string | number | boolean;
|
|
136
|
+
};
|
|
133
137
|
};
|
|
134
138
|
/** @internal */
|
|
135
139
|
export declare const CheckoutCustomFieldData$inboundSchema: z.ZodType<CheckoutCustomFieldData, z.ZodTypeDef, unknown>;
|
|
@@ -212,6 +216,26 @@ export declare namespace CheckoutDiscount$ {
|
|
|
212
216
|
export declare function checkoutDiscountToJSON(checkoutDiscount: CheckoutDiscount): string;
|
|
213
217
|
export declare function checkoutDiscountFromJSON(jsonString: string): SafeParseResult<CheckoutDiscount, SDKValidationError>;
|
|
214
218
|
/** @internal */
|
|
219
|
+
export declare const CustomerMetadata$inboundSchema: z.ZodType<CustomerMetadata, z.ZodTypeDef, unknown>;
|
|
220
|
+
/** @internal */
|
|
221
|
+
export type CustomerMetadata$Outbound = string | number | boolean;
|
|
222
|
+
/** @internal */
|
|
223
|
+
export declare const CustomerMetadata$outboundSchema: z.ZodType<CustomerMetadata$Outbound, z.ZodTypeDef, CustomerMetadata>;
|
|
224
|
+
/**
|
|
225
|
+
* @internal
|
|
226
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
227
|
+
*/
|
|
228
|
+
export declare namespace CustomerMetadata$ {
|
|
229
|
+
/** @deprecated use `CustomerMetadata$inboundSchema` instead. */
|
|
230
|
+
const inboundSchema: z.ZodType<CustomerMetadata, z.ZodTypeDef, unknown>;
|
|
231
|
+
/** @deprecated use `CustomerMetadata$outboundSchema` instead. */
|
|
232
|
+
const outboundSchema: z.ZodType<CustomerMetadata$Outbound, z.ZodTypeDef, CustomerMetadata>;
|
|
233
|
+
/** @deprecated use `CustomerMetadata$Outbound` instead. */
|
|
234
|
+
type Outbound = CustomerMetadata$Outbound;
|
|
235
|
+
}
|
|
236
|
+
export declare function customerMetadataToJSON(customerMetadata: CustomerMetadata): string;
|
|
237
|
+
export declare function customerMetadataFromJSON(jsonString: string): SafeParseResult<CustomerMetadata, SDKValidationError>;
|
|
238
|
+
/** @internal */
|
|
215
239
|
export declare const Checkout$inboundSchema: z.ZodType<Checkout, z.ZodTypeDef, unknown>;
|
|
216
240
|
/** @internal */
|
|
217
241
|
export type Checkout$Outbound = {
|
|
@@ -255,6 +279,9 @@ export type Checkout$Outbound = {
|
|
|
255
279
|
discount: CheckoutDiscountPercentageOnceForeverDuration$Outbound | CheckoutDiscountFixedOnceForeverDuration$Outbound | CheckoutDiscountPercentageRepeatDuration$Outbound | CheckoutDiscountFixedRepeatDuration$Outbound | null;
|
|
256
280
|
subscription_id: string | null;
|
|
257
281
|
attached_custom_fields: Array<AttachedCustomField$Outbound>;
|
|
282
|
+
customer_metadata: {
|
|
283
|
+
[k: string]: string | number | boolean;
|
|
284
|
+
};
|
|
258
285
|
};
|
|
259
286
|
/** @internal */
|
|
260
287
|
export declare const Checkout$outboundSchema: z.ZodType<Checkout$Outbound, z.ZodTypeDef, Checkout>;
|