@apideck/unify 0.13.2 → 0.13.4
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/pipelines/README.md +0 -542
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- 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 +0 -8
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -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/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 +3 -3
- package/src/models/components/bill.ts +18 -0
- package/src/models/components/index.ts +0 -8
- package/src/models/components/ledgeraccount.ts +18 -0
- 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 -115
- 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 -88
- 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/outstandingbalancebysupplier.d.ts +0 -40
- package/models/components/outstandingbalancebysupplier.d.ts.map +0 -1
- package/models/components/outstandingbalancebysupplier.js +0 -77
- package/models/components/outstandingbalancebysupplier.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 -120
- 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/outstandingbalancebysupplier.ts +0 -109
- 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,122 +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.accountingAgedCreditorsGet = accountingAgedCreditorsGet;
|
|
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 Aged Creditors
|
|
39
|
-
*
|
|
40
|
-
* @remarks
|
|
41
|
-
* Get Aged Creditors
|
|
42
|
-
*/
|
|
43
|
-
async function accountingAgedCreditorsGet(client, request, options) {
|
|
44
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.AccountingAgedCreditorsOneRequest$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 path = (0, url_js_1.pathToFunc)("/accounting/aged-creditors")();
|
|
51
|
-
const query = (0, encodings_js_1.queryJoin)((0, encodings_js_1.encodeDeepObjectQuery)({
|
|
52
|
-
"filter": payload.filter,
|
|
53
|
-
"pass_through": payload.pass_through,
|
|
54
|
-
}), (0, encodings_js_1.encodeFormQuery)({
|
|
55
|
-
"fields": payload.fields,
|
|
56
|
-
"raw": payload.raw,
|
|
57
|
-
}));
|
|
58
|
-
const headers = new Headers({
|
|
59
|
-
Accept: "application/json",
|
|
60
|
-
"x-apideck-service-id": (0, encodings_js_1.encodeSimple)("x-apideck-service-id", payload.serviceId, { explode: false, charEncoding: "none" }),
|
|
61
|
-
"x-apideck-app-id": (0, encodings_js_1.encodeSimple)("x-apideck-app-id", client._options.appId, { explode: false, charEncoding: "none" }),
|
|
62
|
-
"x-apideck-consumer-id": (0, encodings_js_1.encodeSimple)("x-apideck-consumer-id", client._options.consumerId, { explode: false, charEncoding: "none" }),
|
|
63
|
-
});
|
|
64
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
65
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
66
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
67
|
-
const context = {
|
|
68
|
-
operationID: "accounting.agedCreditorsOne",
|
|
69
|
-
oAuth2Scopes: [],
|
|
70
|
-
resolvedSecurity: requestSecurity,
|
|
71
|
-
securitySource: client._options.apiKey,
|
|
72
|
-
retryConfig: options?.retries
|
|
73
|
-
|| client._options.retryConfig
|
|
74
|
-
|| {
|
|
75
|
-
strategy: "backoff",
|
|
76
|
-
backoff: {
|
|
77
|
-
initialInterval: 500,
|
|
78
|
-
maxInterval: 60000,
|
|
79
|
-
exponent: 1.5,
|
|
80
|
-
maxElapsedTime: 3600000,
|
|
81
|
-
},
|
|
82
|
-
retryConnectionErrors: true,
|
|
83
|
-
}
|
|
84
|
-
|| { strategy: "none" },
|
|
85
|
-
retryCodes: options?.retryCodes || ["5XX"],
|
|
86
|
-
};
|
|
87
|
-
const requestRes = client._createRequest(context, {
|
|
88
|
-
security: requestSecurity,
|
|
89
|
-
method: "GET",
|
|
90
|
-
baseURL: options?.serverURL,
|
|
91
|
-
path: path,
|
|
92
|
-
headers: headers,
|
|
93
|
-
query: query,
|
|
94
|
-
body: body,
|
|
95
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
96
|
-
}, options);
|
|
97
|
-
if (!requestRes.ok) {
|
|
98
|
-
return requestRes;
|
|
99
|
-
}
|
|
100
|
-
const req = requestRes.value;
|
|
101
|
-
const doResult = await client._do(req, {
|
|
102
|
-
context,
|
|
103
|
-
errorCodes: ["400", "401", "402", "404", "422", "4XX", "5XX"],
|
|
104
|
-
retryConfig: context.retryConfig,
|
|
105
|
-
retryCodes: context.retryCodes,
|
|
106
|
-
});
|
|
107
|
-
if (!doResult.ok) {
|
|
108
|
-
return doResult;
|
|
109
|
-
}
|
|
110
|
-
const response = doResult.value;
|
|
111
|
-
const responseFields = {
|
|
112
|
-
HttpMeta: { Response: response, Request: req },
|
|
113
|
-
};
|
|
114
|
-
const [result] = await M.match(M.json(200, operations.AccountingAgedCreditorsOneResponse$inboundSchema, {
|
|
115
|
-
key: "GetAgedCreditorsResponse",
|
|
116
|
-
}), 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.AccountingAgedCreditorsOneResponse$inboundSchema, { key: "UnexpectedErrorResponse" }))(response, req, { extraFields: responseFields });
|
|
117
|
-
if (!result.ok) {
|
|
118
|
-
return result;
|
|
119
|
-
}
|
|
120
|
-
return result;
|
|
121
|
-
}
|
|
122
|
-
//# sourceMappingURL=accountingAgedCreditorsGet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accountingAgedCreditorsGet.js","sourceRoot":"","sources":["../src/funcs/accountingAgedCreditorsGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,gEA6JC;AA3LD,sDAK6B;AAC7B,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,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AK,CAAC,CAAC,EACtB,CAAC,CAAC,IAAI,CACJ,SAAS,EACT,UAAU,CAAC,gDAAgD,EAC3D,EAAE,GAAG,EAAE,yBAAyB,EAAE,CACnC,CACF,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
|
-
* Create pipeline
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Create pipeline
|
|
14
|
-
*/
|
|
15
|
-
export declare function crmPipelinesCreate(client: ApideckCore, request: operations.CrmPipelinesAddRequest, options?: RequestOptions): Promise<Result<operations.CrmPipelinesAddResponse, errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
16
|
-
//# sourceMappingURL=crmPipelinesCreate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crmPipelinesCreate.d.ts","sourceRoot":"","sources":["../src/funcs/crmPipelinesCreate.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,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,CAgIA"}
|
|
@@ -1,121 +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.crmPipelinesCreate = crmPipelinesCreate;
|
|
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
|
-
* Create pipeline
|
|
39
|
-
*
|
|
40
|
-
* @remarks
|
|
41
|
-
* Create pipeline
|
|
42
|
-
*/
|
|
43
|
-
async function crmPipelinesCreate(client, request, options) {
|
|
44
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CrmPipelinesAddRequest$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 path = (0, url_js_1.pathToFunc)("/crm/pipelines")();
|
|
51
|
-
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
52
|
-
"raw": payload.raw,
|
|
53
|
-
});
|
|
54
|
-
const headers = new Headers({
|
|
55
|
-
"Content-Type": "application/json",
|
|
56
|
-
Accept: "application/json",
|
|
57
|
-
"x-apideck-service-id": (0, encodings_js_1.encodeSimple)("x-apideck-service-id", payload.serviceId, { explode: false, charEncoding: "none" }),
|
|
58
|
-
"x-apideck-app-id": (0, encodings_js_1.encodeSimple)("x-apideck-app-id", client._options.appId, { explode: false, charEncoding: "none" }),
|
|
59
|
-
"x-apideck-consumer-id": (0, encodings_js_1.encodeSimple)("x-apideck-consumer-id", client._options.consumerId, { explode: false, charEncoding: "none" }),
|
|
60
|
-
});
|
|
61
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
62
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
63
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
64
|
-
const context = {
|
|
65
|
-
operationID: "crm.pipelinesAdd",
|
|
66
|
-
oAuth2Scopes: [],
|
|
67
|
-
resolvedSecurity: requestSecurity,
|
|
68
|
-
securitySource: client._options.apiKey,
|
|
69
|
-
retryConfig: options?.retries
|
|
70
|
-
|| client._options.retryConfig
|
|
71
|
-
|| {
|
|
72
|
-
strategy: "backoff",
|
|
73
|
-
backoff: {
|
|
74
|
-
initialInterval: 500,
|
|
75
|
-
maxInterval: 60000,
|
|
76
|
-
exponent: 1.5,
|
|
77
|
-
maxElapsedTime: 3600000,
|
|
78
|
-
},
|
|
79
|
-
retryConnectionErrors: true,
|
|
80
|
-
}
|
|
81
|
-
|| { strategy: "none" },
|
|
82
|
-
retryCodes: options?.retryCodes || ["5XX"],
|
|
83
|
-
};
|
|
84
|
-
const requestRes = client._createRequest(context, {
|
|
85
|
-
security: requestSecurity,
|
|
86
|
-
method: "POST",
|
|
87
|
-
baseURL: options?.serverURL,
|
|
88
|
-
path: path,
|
|
89
|
-
headers: headers,
|
|
90
|
-
query: query,
|
|
91
|
-
body: body,
|
|
92
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
93
|
-
}, options);
|
|
94
|
-
if (!requestRes.ok) {
|
|
95
|
-
return requestRes;
|
|
96
|
-
}
|
|
97
|
-
const req = requestRes.value;
|
|
98
|
-
const doResult = await client._do(req, {
|
|
99
|
-
context,
|
|
100
|
-
errorCodes: ["400", "401", "402", "404", "422", "4XX", "5XX"],
|
|
101
|
-
retryConfig: context.retryConfig,
|
|
102
|
-
retryCodes: context.retryCodes,
|
|
103
|
-
});
|
|
104
|
-
if (!doResult.ok) {
|
|
105
|
-
return doResult;
|
|
106
|
-
}
|
|
107
|
-
const response = doResult.value;
|
|
108
|
-
const responseFields = {
|
|
109
|
-
HttpMeta: { Response: response, Request: req },
|
|
110
|
-
};
|
|
111
|
-
const [result] = await M.match(M.json(201, operations.CrmPipelinesAddResponse$inboundSchema, {
|
|
112
|
-
key: "CreatePipelineResponse",
|
|
113
|
-
}), 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.CrmPipelinesAddResponse$inboundSchema, {
|
|
114
|
-
key: "UnexpectedErrorResponse",
|
|
115
|
-
}))(response, req, { extraFields: responseFields });
|
|
116
|
-
if (!result.ok) {
|
|
117
|
-
return result;
|
|
118
|
-
}
|
|
119
|
-
return result;
|
|
120
|
-
}
|
|
121
|
-
//# sourceMappingURL=crmPipelinesCreate.js.map
|
|
@@ -1 +0,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,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
|
-
* 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crmPipelinesDelete.js","sourceRoot":"","sources":["../src/funcs/crmPipelinesDelete.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,gDA0JC;AAnLD,sDAAoE;AACpE,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,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,wCAAwC,CAAC,KAAK,CAAC,KAAK,CAAC,EAC3E,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,CAAC;IAEF,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,qBAAqB,CAAC,CAAC,UAAU,CAAC,CAAC;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AAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAe5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,wCAAwC,EAAE;QAC/D,GAAG,EAAE,wBAAwB;KAC9B,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,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,E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O,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"}
|