@apideck/unify 0.13.1 → 0.13.3
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 +0 -13
- package/docs/sdks/ageddebtors/README.md +2 -0
- package/docs/sdks/pipelines/README.md +0 -542
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/ageddebtors.d.ts +3 -3
- package/models/components/ageddebtors.d.ts.map +1 -1
- package/models/components/ageddebtors.js +5 -3
- package/models/components/ageddebtors.js.map +1 -1
- package/models/components/agedreportfilter.d.ts +5 -0
- package/models/components/agedreportfilter.d.ts.map +1 -1
- package/models/components/agedreportfilter.js +4 -0
- package/models/components/agedreportfilter.js.map +1 -1
- package/models/components/balancebyperiod.d.ts +6 -6
- package/models/components/balancebyperiod.d.ts.map +1 -1
- package/models/components/balancebyperiod.js +6 -4
- package/models/components/balancebyperiod.js.map +1 -1
- package/models/components/balancebytransaction.d.ts +8 -3
- package/models/components/balancebytransaction.d.ts.map +1 -1
- package/models/components/balancebytransaction.js +5 -1
- package/models/components/balancebytransaction.js.map +1 -1
- package/models/components/bill.d.ts +5 -0
- package/models/components/bill.d.ts.map +1 -1
- package/models/components/bill.js +9 -0
- package/models/components/bill.js.map +1 -1
- package/models/components/index.d.ts +1 -8
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -8
- package/models/components/index.js.map +1 -1
- package/models/components/ledgeraccount.d.ts +5 -0
- package/models/components/ledgeraccount.d.ts.map +1 -1
- package/models/components/ledgeraccount.js +9 -0
- package/models/components/ledgeraccount.js.map +1 -1
- package/models/components/outstandingbalancebycurrency.d.ts +5 -0
- package/models/components/outstandingbalancebycurrency.d.ts.map +1 -1
- package/models/components/outstandingbalancebycurrency.js +4 -0
- package/models/components/outstandingbalancebycurrency.js.map +1 -1
- package/models/components/outstandingbalancebycustomer.d.ts +40 -0
- package/models/components/outstandingbalancebycustomer.d.ts.map +1 -0
- package/models/components/{outstandingbalance.js → outstandingbalancebycustomer.js} +17 -17
- package/models/components/outstandingbalancebycustomer.js.map +1 -0
- package/models/components/supplier.d.ts +5 -0
- package/models/components/supplier.d.ts.map +1 -1
- package/models/components/supplier.js +9 -0
- package/models/components/supplier.js.map +1 -1
- package/models/operations/index.d.ts +0 -5
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -5
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/accounting.d.ts +0 -3
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +0 -4
- package/sdk/accounting.js.map +1 -1
- package/sdk/pipelines.d.ts +0 -28
- package/sdk/pipelines.d.ts.map +1 -1
- package/sdk/pipelines.js +0 -41
- package/sdk/pipelines.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/ageddebtors.ts +13 -9
- package/src/models/components/agedreportfilter.ts +9 -0
- package/src/models/components/balancebyperiod.ts +12 -10
- package/src/models/components/balancebytransaction.ts +10 -1
- package/src/models/components/bill.ts +18 -0
- package/src/models/components/index.ts +1 -8
- package/src/models/components/ledgeraccount.ts +18 -0
- package/src/models/components/outstandingbalancebycurrency.ts +9 -0
- package/src/models/components/{outstandingbalance.ts → outstandingbalancebycustomer.ts} +25 -23
- package/src/models/components/supplier.ts +18 -0
- package/src/models/operations/index.ts +0 -5
- package/src/sdk/accounting.ts +0 -6
- package/src/sdk/pipelines.ts +0 -73
- package/docs/sdks/agedcreditors/README.md +0 -113
- package/funcs/accountingAgedCreditorsGet.d.ts +0 -16
- package/funcs/accountingAgedCreditorsGet.d.ts.map +0 -1
- package/funcs/accountingAgedCreditorsGet.js +0 -122
- package/funcs/accountingAgedCreditorsGet.js.map +0 -1
- package/funcs/crmPipelinesCreate.d.ts +0 -16
- package/funcs/crmPipelinesCreate.d.ts.map +0 -1
- package/funcs/crmPipelinesCreate.js +0 -121
- package/funcs/crmPipelinesCreate.js.map +0 -1
- package/funcs/crmPipelinesDelete.d.ts +0 -16
- package/funcs/crmPipelinesDelete.d.ts.map +0 -1
- package/funcs/crmPipelinesDelete.js +0 -126
- package/funcs/crmPipelinesDelete.js.map +0 -1
- package/funcs/crmPipelinesGet.d.ts +0 -16
- package/funcs/crmPipelinesGet.d.ts.map +0 -1
- package/funcs/crmPipelinesGet.js +0 -127
- package/funcs/crmPipelinesGet.js.map +0 -1
- package/funcs/crmPipelinesUpdate.d.ts +0 -16
- package/funcs/crmPipelinesUpdate.d.ts.map +0 -1
- package/funcs/crmPipelinesUpdate.js +0 -127
- package/funcs/crmPipelinesUpdate.js.map +0 -1
- package/models/components/agedcreditors.d.ts +0 -51
- package/models/components/agedcreditors.d.ts.map +0 -1
- package/models/components/agedcreditors.js +0 -86
- package/models/components/agedcreditors.js.map +0 -1
- package/models/components/createpipelineresponse.d.ts +0 -58
- package/models/components/createpipelineresponse.d.ts.map +0 -1
- package/models/components/createpipelineresponse.js +0 -79
- package/models/components/createpipelineresponse.js.map +0 -1
- package/models/components/deletepipelineresponse.d.ts +0 -58
- package/models/components/deletepipelineresponse.d.ts.map +0 -1
- package/models/components/deletepipelineresponse.js +0 -79
- package/models/components/deletepipelineresponse.js.map +0 -1
- package/models/components/getagedcreditorsresponse.d.ts +0 -58
- package/models/components/getagedcreditorsresponse.d.ts.map +0 -1
- package/models/components/getagedcreditorsresponse.js +0 -79
- package/models/components/getagedcreditorsresponse.js.map +0 -1
- package/models/components/getpipelineresponse.d.ts +0 -58
- package/models/components/getpipelineresponse.d.ts.map +0 -1
- package/models/components/getpipelineresponse.js +0 -79
- package/models/components/getpipelineresponse.js.map +0 -1
- package/models/components/outstandingbalance.d.ts +0 -40
- package/models/components/outstandingbalance.d.ts.map +0 -1
- package/models/components/outstandingbalance.js.map +0 -1
- package/models/components/pipelineinput.d.ts +0 -117
- package/models/components/pipelineinput.d.ts.map +0 -1
- package/models/components/pipelineinput.js +0 -133
- package/models/components/pipelineinput.js.map +0 -1
- package/models/components/updatepipelineresponse.d.ts +0 -58
- package/models/components/updatepipelineresponse.d.ts.map +0 -1
- package/models/components/updatepipelineresponse.js +0 -79
- package/models/components/updatepipelineresponse.js.map +0 -1
- package/models/operations/accountingagedcreditorsone.d.ts +0 -125
- package/models/operations/accountingagedcreditorsone.d.ts.map +0 -1
- package/models/operations/accountingagedcreditorsone.js +0 -153
- package/models/operations/accountingagedcreditorsone.js.map +0 -1
- package/models/operations/crmpipelinesadd.d.ts +0 -108
- package/models/operations/crmpipelinesadd.d.ts.map +0 -1
- package/models/operations/crmpipelinesadd.js +0 -149
- package/models/operations/crmpipelinesadd.js.map +0 -1
- package/models/operations/crmpipelinesdelete.d.ts +0 -111
- package/models/operations/crmpipelinesdelete.d.ts.map +0 -1
- package/models/operations/crmpipelinesdelete.js +0 -141
- package/models/operations/crmpipelinesdelete.js.map +0 -1
- package/models/operations/crmpipelinesone.d.ts +0 -116
- package/models/operations/crmpipelinesone.d.ts.map +0 -1
- package/models/operations/crmpipelinesone.js +0 -141
- package/models/operations/crmpipelinesone.js.map +0 -1
- package/models/operations/crmpipelinesupdate.d.ts +0 -113
- package/models/operations/crmpipelinesupdate.d.ts.map +0 -1
- package/models/operations/crmpipelinesupdate.js +0 -151
- package/models/operations/crmpipelinesupdate.js.map +0 -1
- package/sdk/agedcreditors.d.ts +0 -12
- package/sdk/agedcreditors.d.ts.map +0 -1
- package/sdk/agedcreditors.js +0 -22
- package/sdk/agedcreditors.js.map +0 -1
- package/src/funcs/accountingAgedCreditorsGet.ts +0 -193
- package/src/funcs/crmPipelinesCreate.ts +0 -179
- package/src/funcs/crmPipelinesDelete.ts +0 -185
- package/src/funcs/crmPipelinesGet.ts +0 -186
- package/src/funcs/crmPipelinesUpdate.ts +0 -186
- package/src/models/components/agedcreditors.ts +0 -116
- package/src/models/components/createpipelineresponse.ts +0 -119
- package/src/models/components/deletepipelineresponse.ts +0 -119
- package/src/models/components/getagedcreditorsresponse.ts +0 -119
- package/src/models/components/getpipelineresponse.ts +0 -119
- package/src/models/components/pipelineinput.ts +0 -233
- package/src/models/components/updatepipelineresponse.ts +0 -119
- package/src/models/operations/accountingagedcreditorsone.ts +0 -277
- package/src/models/operations/crmpipelinesadd.ts +0 -250
- package/src/models/operations/crmpipelinesdelete.ts +0 -245
- package/src/models/operations/crmpipelinesone.ts +0 -248
- package/src/models/operations/crmpipelinesupdate.ts +0 -257
- package/src/sdk/agedcreditors.ts +0 -27
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ApideckCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { APIError } from "../models/errors/apierror.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
-
import * as errors from "../models/errors/index.js";
|
|
6
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
/**
|
|
10
|
-
* Delete pipeline
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Delete pipeline
|
|
14
|
-
*/
|
|
15
|
-
export declare function crmPipelinesDelete(client: ApideckCore, request: operations.CrmPipelinesDeleteRequest, options?: RequestOptions): Promise<Result<operations.CrmPipelinesDeleteResponse, errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
16
|
-
//# sourceMappingURL=crmPipelinesDelete.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crmPipelinesDelete.d.ts","sourceRoot":"","sources":["../src/funcs/crmPipelinesDelete.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAIzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,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,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,0BAA0B,EACnC,MAAM,CAAC,kBAAkB,GACzB,MAAM,CAAC,oBAAoB,GAC3B,MAAM,CAAC,uBAAuB,GAC9B,MAAM,CAAC,gBAAgB,GACvB,MAAM,CAAC,qBAAqB,GAC5B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAsIA"}
|
|
@@ -1,126 +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.crmPipelinesDelete = crmPipelinesDelete;
|
|
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 errors = __importStar(require("../models/errors/index.js"));
|
|
36
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
37
|
-
/**
|
|
38
|
-
* Delete pipeline
|
|
39
|
-
*
|
|
40
|
-
* @remarks
|
|
41
|
-
* Delete pipeline
|
|
42
|
-
*/
|
|
43
|
-
async function crmPipelinesDelete(client, request, options) {
|
|
44
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CrmPipelinesDeleteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45
|
-
if (!parsed.ok) {
|
|
46
|
-
return parsed;
|
|
47
|
-
}
|
|
48
|
-
const payload = parsed.value;
|
|
49
|
-
const body = null;
|
|
50
|
-
const pathParams = {
|
|
51
|
-
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
52
|
-
explode: false,
|
|
53
|
-
charEncoding: "percent",
|
|
54
|
-
}),
|
|
55
|
-
};
|
|
56
|
-
const path = (0, url_js_1.pathToFunc)("/crm/pipelines/{id}")(pathParams);
|
|
57
|
-
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
58
|
-
"raw": payload.raw,
|
|
59
|
-
});
|
|
60
|
-
const headers = new Headers({
|
|
61
|
-
Accept: "application/json",
|
|
62
|
-
"x-apideck-service-id": (0, encodings_js_1.encodeSimple)("x-apideck-service-id", payload.serviceId, { explode: false, charEncoding: "none" }),
|
|
63
|
-
"x-apideck-app-id": (0, encodings_js_1.encodeSimple)("x-apideck-app-id", client._options.appId, { explode: false, charEncoding: "none" }),
|
|
64
|
-
"x-apideck-consumer-id": (0, encodings_js_1.encodeSimple)("x-apideck-consumer-id", client._options.consumerId, { explode: false, charEncoding: "none" }),
|
|
65
|
-
});
|
|
66
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
67
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
68
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
69
|
-
const context = {
|
|
70
|
-
operationID: "crm.pipelinesDelete",
|
|
71
|
-
oAuth2Scopes: [],
|
|
72
|
-
resolvedSecurity: requestSecurity,
|
|
73
|
-
securitySource: client._options.apiKey,
|
|
74
|
-
retryConfig: options?.retries
|
|
75
|
-
|| client._options.retryConfig
|
|
76
|
-
|| {
|
|
77
|
-
strategy: "backoff",
|
|
78
|
-
backoff: {
|
|
79
|
-
initialInterval: 500,
|
|
80
|
-
maxInterval: 60000,
|
|
81
|
-
exponent: 1.5,
|
|
82
|
-
maxElapsedTime: 3600000,
|
|
83
|
-
},
|
|
84
|
-
retryConnectionErrors: true,
|
|
85
|
-
}
|
|
86
|
-
|| { strategy: "none" },
|
|
87
|
-
retryCodes: options?.retryCodes || ["5XX"],
|
|
88
|
-
};
|
|
89
|
-
const requestRes = client._createRequest(context, {
|
|
90
|
-
security: requestSecurity,
|
|
91
|
-
method: "DELETE",
|
|
92
|
-
baseURL: options?.serverURL,
|
|
93
|
-
path: path,
|
|
94
|
-
headers: headers,
|
|
95
|
-
query: query,
|
|
96
|
-
body: body,
|
|
97
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
98
|
-
}, options);
|
|
99
|
-
if (!requestRes.ok) {
|
|
100
|
-
return requestRes;
|
|
101
|
-
}
|
|
102
|
-
const req = requestRes.value;
|
|
103
|
-
const doResult = await client._do(req, {
|
|
104
|
-
context,
|
|
105
|
-
errorCodes: ["400", "401", "402", "404", "422", "4XX", "5XX"],
|
|
106
|
-
retryConfig: context.retryConfig,
|
|
107
|
-
retryCodes: context.retryCodes,
|
|
108
|
-
});
|
|
109
|
-
if (!doResult.ok) {
|
|
110
|
-
return doResult;
|
|
111
|
-
}
|
|
112
|
-
const response = doResult.value;
|
|
113
|
-
const responseFields = {
|
|
114
|
-
HttpMeta: { Response: response, Request: req },
|
|
115
|
-
};
|
|
116
|
-
const [result] = await M.match(M.json(200, operations.CrmPipelinesDeleteResponse$inboundSchema, {
|
|
117
|
-
key: "DeletePipelineResponse",
|
|
118
|
-
}), M.jsonErr(400, errors.BadRequestResponse$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponse$inboundSchema), M.jsonErr(402, errors.PaymentRequiredResponse$inboundSchema), M.jsonErr(404, errors.NotFoundResponse$inboundSchema), M.jsonErr(422, errors.UnprocessableResponse$inboundSchema), M.fail(["4XX", "5XX"]), M.json("default", operations.CrmPipelinesDeleteResponse$inboundSchema, {
|
|
119
|
-
key: "UnexpectedErrorResponse",
|
|
120
|
-
}))(response, req, { extraFields: responseFields });
|
|
121
|
-
if (!result.ok) {
|
|
122
|
-
return result;
|
|
123
|
-
}
|
|
124
|
-
return result;
|
|
125
|
-
}
|
|
126
|
-
//# sourceMappingURL=crmPipelinesDelete.js.map
|
|
@@ -1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CAAC,EACzD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,qCAAqC,CAAC,EAC5D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,8BAA8B,CAAC,EACrD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,mCAAmC,CAAC,EAC1D,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,EACtB,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,wCAAwC,EAAE;QACrE,GAAG,EAAE,yBAAyB;KAC/B,CAAC,CACH,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ApideckCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { APIError } from "../models/errors/apierror.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
-
import * as errors from "../models/errors/index.js";
|
|
6
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
/**
|
|
10
|
-
* Get pipeline
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Get pipeline
|
|
14
|
-
*/
|
|
15
|
-
export declare function crmPipelinesGet(client: ApideckCore, request: operations.CrmPipelinesOneRequest, options?: RequestOptions): Promise<Result<operations.CrmPipelinesOneResponse, errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
16
|
-
//# sourceMappingURL=crmPipelinesGet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crmPipelinesGet.d.ts","sourceRoot":"","sources":["../src/funcs/crmPipelinesGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAIzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,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,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,uBAAuB,EAChC,MAAM,CAAC,kBAAkB,GACzB,MAAM,CAAC,oBAAoB,GAC3B,MAAM,CAAC,uBAAuB,GAC9B,MAAM,CAAC,gBAAgB,GACvB,MAAM,CAAC,qBAAqB,GAC5B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAuIA"}
|
package/funcs/crmPipelinesGet.js
DELETED
|
@@ -1,127 +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.crmPipelinesGet = crmPipelinesGet;
|
|
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 errors = __importStar(require("../models/errors/index.js"));
|
|
36
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
37
|
-
/**
|
|
38
|
-
* Get pipeline
|
|
39
|
-
*
|
|
40
|
-
* @remarks
|
|
41
|
-
* Get pipeline
|
|
42
|
-
*/
|
|
43
|
-
async function crmPipelinesGet(client, request, options) {
|
|
44
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CrmPipelinesOneRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45
|
-
if (!parsed.ok) {
|
|
46
|
-
return parsed;
|
|
47
|
-
}
|
|
48
|
-
const payload = parsed.value;
|
|
49
|
-
const body = null;
|
|
50
|
-
const pathParams = {
|
|
51
|
-
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
52
|
-
explode: false,
|
|
53
|
-
charEncoding: "percent",
|
|
54
|
-
}),
|
|
55
|
-
};
|
|
56
|
-
const path = (0, url_js_1.pathToFunc)("/crm/pipelines/{id}")(pathParams);
|
|
57
|
-
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
58
|
-
"fields": payload.fields,
|
|
59
|
-
"raw": payload.raw,
|
|
60
|
-
});
|
|
61
|
-
const headers = new Headers({
|
|
62
|
-
Accept: "application/json",
|
|
63
|
-
"x-apideck-service-id": (0, encodings_js_1.encodeSimple)("x-apideck-service-id", payload.serviceId, { explode: false, charEncoding: "none" }),
|
|
64
|
-
"x-apideck-app-id": (0, encodings_js_1.encodeSimple)("x-apideck-app-id", client._options.appId, { explode: false, charEncoding: "none" }),
|
|
65
|
-
"x-apideck-consumer-id": (0, encodings_js_1.encodeSimple)("x-apideck-consumer-id", client._options.consumerId, { explode: false, charEncoding: "none" }),
|
|
66
|
-
});
|
|
67
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
68
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
69
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
70
|
-
const context = {
|
|
71
|
-
operationID: "crm.pipelinesOne",
|
|
72
|
-
oAuth2Scopes: [],
|
|
73
|
-
resolvedSecurity: requestSecurity,
|
|
74
|
-
securitySource: client._options.apiKey,
|
|
75
|
-
retryConfig: options?.retries
|
|
76
|
-
|| client._options.retryConfig
|
|
77
|
-
|| {
|
|
78
|
-
strategy: "backoff",
|
|
79
|
-
backoff: {
|
|
80
|
-
initialInterval: 500,
|
|
81
|
-
maxInterval: 60000,
|
|
82
|
-
exponent: 1.5,
|
|
83
|
-
maxElapsedTime: 3600000,
|
|
84
|
-
},
|
|
85
|
-
retryConnectionErrors: true,
|
|
86
|
-
}
|
|
87
|
-
|| { strategy: "none" },
|
|
88
|
-
retryCodes: options?.retryCodes || ["5XX"],
|
|
89
|
-
};
|
|
90
|
-
const requestRes = client._createRequest(context, {
|
|
91
|
-
security: requestSecurity,
|
|
92
|
-
method: "GET",
|
|
93
|
-
baseURL: options?.serverURL,
|
|
94
|
-
path: path,
|
|
95
|
-
headers: headers,
|
|
96
|
-
query: query,
|
|
97
|
-
body: body,
|
|
98
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
99
|
-
}, options);
|
|
100
|
-
if (!requestRes.ok) {
|
|
101
|
-
return requestRes;
|
|
102
|
-
}
|
|
103
|
-
const req = requestRes.value;
|
|
104
|
-
const doResult = await client._do(req, {
|
|
105
|
-
context,
|
|
106
|
-
errorCodes: ["400", "401", "402", "404", "422", "4XX", "5XX"],
|
|
107
|
-
retryConfig: context.retryConfig,
|
|
108
|
-
retryCodes: context.retryCodes,
|
|
109
|
-
});
|
|
110
|
-
if (!doResult.ok) {
|
|
111
|
-
return doResult;
|
|
112
|
-
}
|
|
113
|
-
const response = doResult.value;
|
|
114
|
-
const responseFields = {
|
|
115
|
-
HttpMeta: { Response: response, Request: req },
|
|
116
|
-
};
|
|
117
|
-
const [result] = await M.match(M.json(200, operations.CrmPipelinesOneResponse$inboundSchema, {
|
|
118
|
-
key: "GetPipelineResponse",
|
|
119
|
-
}), M.jsonErr(400, errors.BadRequestResponse$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponse$inboundSchema), M.jsonErr(402, errors.PaymentRequiredResponse$inboundSchema), M.jsonErr(404, errors.NotFoundResponse$inboundSchema), M.jsonErr(422, errors.UnprocessableResponse$inboundSchema), M.fail(["4XX", "5XX"]), M.json("default", operations.CrmPipelinesOneResponse$inboundSchema, {
|
|
120
|
-
key: "UnexpectedErrorResponse",
|
|
121
|
-
}))(response, req, { extraFields: responseFields });
|
|
122
|
-
if (!result.ok) {
|
|
123
|
-
return result;
|
|
124
|
-
}
|
|
125
|
-
return result;
|
|
126
|
-
}
|
|
127
|
-
//# sourceMappingURL=crmPipelinesGet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crmPipelinesGet.js","sourceRoot":"","sources":["../src/funcs/crmPipelinesGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,0CA2JC;AApLD,sDAAoE;AACpE,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAEpD,0EAA4D;AAG5D;;;;;GAKG;AACI,KAAK,UAAU,eAAe,CACnC,MAAmB,EACnB,OAA0C,EAC1C,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,qCAAqC,CAAC,KAAK,CAAC,KAAK,CAAC,EACxE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,UAAU,GAAG;QACjB,EAAE,EAAE,IAAA,2BAAY,EAAC,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE;YACjC,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAAS;SACxB,CAAC;KACH,CA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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,CAe5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,qCAAqC,EAAE;QAC5D,GAAG,EAAE,qBAAqB;KAC3B,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,gCAAgC,CAAC,EACvD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,kCAAkC,CAAC,EACzD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,qCAAqC,CAAC,EAC5D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,8BAA8B,CAAC,EACrD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,mCAAmC,CAAC,EAC1D,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,EACtB,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,qCAAqC,EAAE;QAClE,GAAG,EAAE,yBAAyB;KAC/B,CAAC,CACH,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ApideckCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { APIError } from "../models/errors/apierror.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
-
import * as errors from "../models/errors/index.js";
|
|
6
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
/**
|
|
10
|
-
* Update pipeline
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Update pipeline
|
|
14
|
-
*/
|
|
15
|
-
export declare function crmPipelinesUpdate(client: ApideckCore, request: operations.CrmPipelinesUpdateRequest, options?: RequestOptions): Promise<Result<operations.CrmPipelinesUpdateResponse, errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
16
|
-
//# sourceMappingURL=crmPipelinesUpdate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crmPipelinesUpdate.d.ts","sourceRoot":"","sources":["../src/funcs/crmPipelinesUpdate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAIzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,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,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,0BAA0B,EACnC,MAAM,CAAC,kBAAkB,GACzB,MAAM,CAAC,oBAAoB,GAC3B,MAAM,CAAC,uBAAuB,GAC9B,MAAM,CAAC,gBAAgB,GACvB,MAAM,CAAC,qBAAqB,GAC5B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAuIA"}
|
|
@@ -1,127 +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.crmPipelinesUpdate = crmPipelinesUpdate;
|
|
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 errors = __importStar(require("../models/errors/index.js"));
|
|
36
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
37
|
-
/**
|
|
38
|
-
* Update pipeline
|
|
39
|
-
*
|
|
40
|
-
* @remarks
|
|
41
|
-
* Update pipeline
|
|
42
|
-
*/
|
|
43
|
-
async function crmPipelinesUpdate(client, request, options) {
|
|
44
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CrmPipelinesUpdateRequest$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.Pipeline, { explode: true });
|
|
50
|
-
const pathParams = {
|
|
51
|
-
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
52
|
-
explode: false,
|
|
53
|
-
charEncoding: "percent",
|
|
54
|
-
}),
|
|
55
|
-
};
|
|
56
|
-
const path = (0, url_js_1.pathToFunc)("/crm/pipelines/{id}")(pathParams);
|
|
57
|
-
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
58
|
-
"raw": payload.raw,
|
|
59
|
-
});
|
|
60
|
-
const headers = new Headers({
|
|
61
|
-
"Content-Type": "application/json",
|
|
62
|
-
Accept: "application/json",
|
|
63
|
-
"x-apideck-service-id": (0, encodings_js_1.encodeSimple)("x-apideck-service-id", payload.serviceId, { explode: false, charEncoding: "none" }),
|
|
64
|
-
"x-apideck-app-id": (0, encodings_js_1.encodeSimple)("x-apideck-app-id", client._options.appId, { explode: false, charEncoding: "none" }),
|
|
65
|
-
"x-apideck-consumer-id": (0, encodings_js_1.encodeSimple)("x-apideck-consumer-id", client._options.consumerId, { explode: false, charEncoding: "none" }),
|
|
66
|
-
});
|
|
67
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
68
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
69
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
70
|
-
const context = {
|
|
71
|
-
operationID: "crm.pipelinesUpdate",
|
|
72
|
-
oAuth2Scopes: [],
|
|
73
|
-
resolvedSecurity: requestSecurity,
|
|
74
|
-
securitySource: client._options.apiKey,
|
|
75
|
-
retryConfig: options?.retries
|
|
76
|
-
|| client._options.retryConfig
|
|
77
|
-
|| {
|
|
78
|
-
strategy: "backoff",
|
|
79
|
-
backoff: {
|
|
80
|
-
initialInterval: 500,
|
|
81
|
-
maxInterval: 60000,
|
|
82
|
-
exponent: 1.5,
|
|
83
|
-
maxElapsedTime: 3600000,
|
|
84
|
-
},
|
|
85
|
-
retryConnectionErrors: true,
|
|
86
|
-
}
|
|
87
|
-
|| { strategy: "none" },
|
|
88
|
-
retryCodes: options?.retryCodes || ["5XX"],
|
|
89
|
-
};
|
|
90
|
-
const requestRes = client._createRequest(context, {
|
|
91
|
-
security: requestSecurity,
|
|
92
|
-
method: "PATCH",
|
|
93
|
-
baseURL: options?.serverURL,
|
|
94
|
-
path: path,
|
|
95
|
-
headers: headers,
|
|
96
|
-
query: query,
|
|
97
|
-
body: body,
|
|
98
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
99
|
-
}, options);
|
|
100
|
-
if (!requestRes.ok) {
|
|
101
|
-
return requestRes;
|
|
102
|
-
}
|
|
103
|
-
const req = requestRes.value;
|
|
104
|
-
const doResult = await client._do(req, {
|
|
105
|
-
context,
|
|
106
|
-
errorCodes: ["400", "401", "402", "404", "422", "4XX", "5XX"],
|
|
107
|
-
retryConfig: context.retryConfig,
|
|
108
|
-
retryCodes: context.retryCodes,
|
|
109
|
-
});
|
|
110
|
-
if (!doResult.ok) {
|
|
111
|
-
return doResult;
|
|
112
|
-
}
|
|
113
|
-
const response = doResult.value;
|
|
114
|
-
const responseFields = {
|
|
115
|
-
HttpMeta: { Response: response, Request: req },
|
|
116
|
-
};
|
|
117
|
-
const [result] = await M.match(M.json(200, operations.CrmPipelinesUpdateResponse$inboundSchema, {
|
|
118
|
-
key: "UpdatePipelineResponse",
|
|
119
|
-
}), M.jsonErr(400, errors.BadRequestResponse$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponse$inboundSchema), M.jsonErr(402, errors.PaymentRequiredResponse$inboundSchema), M.jsonErr(404, errors.NotFoundResponse$inboundSchema), M.jsonErr(422, errors.UnprocessableResponse$inboundSchema), M.fail(["4XX", "5XX"]), M.json("default", operations.CrmPipelinesUpdateResponse$inboundSchema, {
|
|
120
|
-
key: "UnexpectedErrorResponse",
|
|
121
|
-
}))(response, req, { extraFields: responseFields });
|
|
122
|
-
if (!result.ok) {
|
|
123
|
-
return result;
|
|
124
|
-
}
|
|
125
|
-
return result;
|
|
126
|
-
}
|
|
127
|
-
//# sourceMappingURL=crmPipelinesUpdate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crmPipelinesUpdate.js","sourceRoot":"","sources":["../src/funcs/crmPipelinesUpdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,gDA2JC;AApLD,sDAAgF;AAChF,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAEpD,0EAA4D;AAG5D;;;;;GAKG;AACI,KAAK,UAAU,kBAAkB,CACtC,MAAmB,EACnB,OAA6C,EAC7C,OAAwB;IAkBxB,MAAM,M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KAAK,CAAC,CAAC,EACtB,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,wCAAwC,EAAE;QACrE,GAAG,EAAE,yBAAyB;KAC/B,CAAC,CACH,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { RFCDate } from "../../types/rfcdate.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
import { OutstandingBalance, OutstandingBalance$Outbound } from "./outstandingbalance.js";
|
|
6
|
-
export type AgedCreditors = {
|
|
7
|
-
/**
|
|
8
|
-
* The exact date and time the report was generated.
|
|
9
|
-
*/
|
|
10
|
-
reportGeneratedAt?: Date | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* The cutoff date for transactions included in the report.
|
|
13
|
-
*/
|
|
14
|
-
reportAsOfDate?: RFCDate | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Number of aging periods shown in the report.
|
|
17
|
-
*/
|
|
18
|
-
periodCount?: number | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* Length of each aging period in days.
|
|
21
|
-
*/
|
|
22
|
-
periodLength?: number | undefined;
|
|
23
|
-
outstandingBalances?: Array<OutstandingBalance> | undefined;
|
|
24
|
-
};
|
|
25
|
-
/** @internal */
|
|
26
|
-
export declare const AgedCreditors$inboundSchema: z.ZodType<AgedCreditors, z.ZodTypeDef, unknown>;
|
|
27
|
-
/** @internal */
|
|
28
|
-
export type AgedCreditors$Outbound = {
|
|
29
|
-
report_generated_at?: string | undefined;
|
|
30
|
-
report_as_of_date?: string | undefined;
|
|
31
|
-
period_count: number;
|
|
32
|
-
period_length: number;
|
|
33
|
-
outstanding_balances?: Array<OutstandingBalance$Outbound> | undefined;
|
|
34
|
-
};
|
|
35
|
-
/** @internal */
|
|
36
|
-
export declare const AgedCreditors$outboundSchema: z.ZodType<AgedCreditors$Outbound, z.ZodTypeDef, AgedCreditors>;
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
-
*/
|
|
41
|
-
export declare namespace AgedCreditors$ {
|
|
42
|
-
/** @deprecated use `AgedCreditors$inboundSchema` instead. */
|
|
43
|
-
const inboundSchema: z.ZodType<AgedCreditors, z.ZodTypeDef, unknown>;
|
|
44
|
-
/** @deprecated use `AgedCreditors$outboundSchema` instead. */
|
|
45
|
-
const outboundSchema: z.ZodType<AgedCreditors$Outbound, z.ZodTypeDef, AgedCreditors>;
|
|
46
|
-
/** @deprecated use `AgedCreditors$Outbound` instead. */
|
|
47
|
-
type Outbound = AgedCreditors$Outbound;
|
|
48
|
-
}
|
|
49
|
-
export declare function agedCreditorsToJSON(agedCreditors: AgedCreditors): string;
|
|
50
|
-
export declare function agedCreditorsFromJSON(jsonString: string): SafeParseResult<AgedCreditors, SDKValidationError>;
|
|
51
|
-
//# sourceMappingURL=agedcreditors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agedcreditors.d.ts","sourceRoot":"","sources":["../../src/models/components/agedcreditors.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAEjC,M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kBAAkB,CAAC,CAMpD"}
|
|
@@ -1,86 +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.AgedCreditors$ = exports.AgedCreditors$outboundSchema = exports.AgedCreditors$inboundSchema = void 0;
|
|
30
|
-
exports.agedCreditorsToJSON = agedCreditorsToJSON;
|
|
31
|
-
exports.agedCreditorsFromJSON = agedCreditorsFromJSON;
|
|
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 rfcdate_js_1 = require("../../types/rfcdate.js");
|
|
36
|
-
const outstandingbalance_js_1 = require("./outstandingbalance.js");
|
|
37
|
-
/** @internal */
|
|
38
|
-
exports.AgedCreditors$inboundSchema = z.object({
|
|
39
|
-
report_generated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
|
|
40
|
-
report_as_of_date: z.string().transform(v => new rfcdate_js_1.RFCDate(v)).optional(),
|
|
41
|
-
period_count: z.number().int().default(4),
|
|
42
|
-
period_length: z.number().int().default(30),
|
|
43
|
-
outstanding_balances: z.array(outstandingbalance_js_1.OutstandingBalance$inboundSchema).optional(),
|
|
44
|
-
}).transform((v) => {
|
|
45
|
-
return (0, primitives_js_1.remap)(v, {
|
|
46
|
-
"report_generated_at": "reportGeneratedAt",
|
|
47
|
-
"report_as_of_date": "reportAsOfDate",
|
|
48
|
-
"period_count": "periodCount",
|
|
49
|
-
"period_length": "periodLength",
|
|
50
|
-
"outstanding_balances": "outstandingBalances",
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
/** @internal */
|
|
54
|
-
exports.AgedCreditors$outboundSchema = z.object({
|
|
55
|
-
reportGeneratedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
56
|
-
reportAsOfDate: z.instanceof(rfcdate_js_1.RFCDate).transform(v => v.toString()).optional(),
|
|
57
|
-
periodCount: z.number().int().default(4),
|
|
58
|
-
periodLength: z.number().int().default(30),
|
|
59
|
-
outstandingBalances: z.array(outstandingbalance_js_1.OutstandingBalance$outboundSchema).optional(),
|
|
60
|
-
}).transform((v) => {
|
|
61
|
-
return (0, primitives_js_1.remap)(v, {
|
|
62
|
-
reportGeneratedAt: "report_generated_at",
|
|
63
|
-
reportAsOfDate: "report_as_of_date",
|
|
64
|
-
periodCount: "period_count",
|
|
65
|
-
periodLength: "period_length",
|
|
66
|
-
outstandingBalances: "outstanding_balances",
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
-
*/
|
|
73
|
-
var AgedCreditors$;
|
|
74
|
-
(function (AgedCreditors$) {
|
|
75
|
-
/** @deprecated use `AgedCreditors$inboundSchema` instead. */
|
|
76
|
-
AgedCreditors$.inboundSchema = exports.AgedCreditors$inboundSchema;
|
|
77
|
-
/** @deprecated use `AgedCreditors$outboundSchema` instead. */
|
|
78
|
-
AgedCreditors$.outboundSchema = exports.AgedCreditors$outboundSchema;
|
|
79
|
-
})(AgedCreditors$ || (exports.AgedCreditors$ = AgedCreditors$ = {}));
|
|
80
|
-
function agedCreditorsToJSON(agedCreditors) {
|
|
81
|
-
return JSON.stringify(exports.AgedCreditors$outboundSchema.parse(agedCreditors));
|
|
82
|
-
}
|
|
83
|
-
function agedCreditorsFromJSON(jsonString) {
|
|
84
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgedCreditors$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgedCreditors' from JSON`);
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=agedcreditors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agedcreditors.js","sourceRoot":"","sources":["../../src/models/components/agedcreditors.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGH,kDAEC;AAED,sDAQC;AA/GD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,uDAAiD;AAEjD,mEAKiC;AAsBjC,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CACvE,IAAI,IAAI,CAAC,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