@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,141 +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.CrmPipelinesOneResponse$ = exports.CrmPipelinesOneResponse$outboundSchema = exports.CrmPipelinesOneResponse$inboundSchema = exports.CrmPipelinesOneRequest$ = exports.CrmPipelinesOneRequest$outboundSchema = exports.CrmPipelinesOneRequest$inboundSchema = exports.CrmPipelinesOneGlobals$ = exports.CrmPipelinesOneGlobals$outboundSchema = exports.CrmPipelinesOneGlobals$inboundSchema = void 0;
|
|
30
|
-
exports.crmPipelinesOneGlobalsToJSON = crmPipelinesOneGlobalsToJSON;
|
|
31
|
-
exports.crmPipelinesOneGlobalsFromJSON = crmPipelinesOneGlobalsFromJSON;
|
|
32
|
-
exports.crmPipelinesOneRequestToJSON = crmPipelinesOneRequestToJSON;
|
|
33
|
-
exports.crmPipelinesOneRequestFromJSON = crmPipelinesOneRequestFromJSON;
|
|
34
|
-
exports.crmPipelinesOneResponseToJSON = crmPipelinesOneResponseToJSON;
|
|
35
|
-
exports.crmPipelinesOneResponseFromJSON = crmPipelinesOneResponseFromJSON;
|
|
36
|
-
const z = __importStar(require("zod"));
|
|
37
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
38
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
39
|
-
const components = __importStar(require("../components/index.js"));
|
|
40
|
-
/** @internal */
|
|
41
|
-
exports.CrmPipelinesOneGlobals$inboundSchema = z.object({
|
|
42
|
-
consumerId: z.string().optional(),
|
|
43
|
-
appId: z.string().optional(),
|
|
44
|
-
});
|
|
45
|
-
/** @internal */
|
|
46
|
-
exports.CrmPipelinesOneGlobals$outboundSchema = z.object({
|
|
47
|
-
consumerId: z.string().optional(),
|
|
48
|
-
appId: z.string().optional(),
|
|
49
|
-
});
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
var CrmPipelinesOneGlobals$;
|
|
55
|
-
(function (CrmPipelinesOneGlobals$) {
|
|
56
|
-
/** @deprecated use `CrmPipelinesOneGlobals$inboundSchema` instead. */
|
|
57
|
-
CrmPipelinesOneGlobals$.inboundSchema = exports.CrmPipelinesOneGlobals$inboundSchema;
|
|
58
|
-
/** @deprecated use `CrmPipelinesOneGlobals$outboundSchema` instead. */
|
|
59
|
-
CrmPipelinesOneGlobals$.outboundSchema = exports.CrmPipelinesOneGlobals$outboundSchema;
|
|
60
|
-
})(CrmPipelinesOneGlobals$ || (exports.CrmPipelinesOneGlobals$ = CrmPipelinesOneGlobals$ = {}));
|
|
61
|
-
function crmPipelinesOneGlobalsToJSON(crmPipelinesOneGlobals) {
|
|
62
|
-
return JSON.stringify(exports.CrmPipelinesOneGlobals$outboundSchema.parse(crmPipelinesOneGlobals));
|
|
63
|
-
}
|
|
64
|
-
function crmPipelinesOneGlobalsFromJSON(jsonString) {
|
|
65
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CrmPipelinesOneGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CrmPipelinesOneGlobals' from JSON`);
|
|
66
|
-
}
|
|
67
|
-
/** @internal */
|
|
68
|
-
exports.CrmPipelinesOneRequest$inboundSchema = z.object({
|
|
69
|
-
id: z.string(),
|
|
70
|
-
serviceId: z.string().optional(),
|
|
71
|
-
raw: z.boolean().default(false),
|
|
72
|
-
fields: z.nullable(z.string()).optional(),
|
|
73
|
-
});
|
|
74
|
-
/** @internal */
|
|
75
|
-
exports.CrmPipelinesOneRequest$outboundSchema = z.object({
|
|
76
|
-
id: z.string(),
|
|
77
|
-
serviceId: z.string().optional(),
|
|
78
|
-
raw: z.boolean().default(false),
|
|
79
|
-
fields: z.nullable(z.string()).optional(),
|
|
80
|
-
});
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
-
*/
|
|
85
|
-
var CrmPipelinesOneRequest$;
|
|
86
|
-
(function (CrmPipelinesOneRequest$) {
|
|
87
|
-
/** @deprecated use `CrmPipelinesOneRequest$inboundSchema` instead. */
|
|
88
|
-
CrmPipelinesOneRequest$.inboundSchema = exports.CrmPipelinesOneRequest$inboundSchema;
|
|
89
|
-
/** @deprecated use `CrmPipelinesOneRequest$outboundSchema` instead. */
|
|
90
|
-
CrmPipelinesOneRequest$.outboundSchema = exports.CrmPipelinesOneRequest$outboundSchema;
|
|
91
|
-
})(CrmPipelinesOneRequest$ || (exports.CrmPipelinesOneRequest$ = CrmPipelinesOneRequest$ = {}));
|
|
92
|
-
function crmPipelinesOneRequestToJSON(crmPipelinesOneRequest) {
|
|
93
|
-
return JSON.stringify(exports.CrmPipelinesOneRequest$outboundSchema.parse(crmPipelinesOneRequest));
|
|
94
|
-
}
|
|
95
|
-
function crmPipelinesOneRequestFromJSON(jsonString) {
|
|
96
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CrmPipelinesOneRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CrmPipelinesOneRequest' from JSON`);
|
|
97
|
-
}
|
|
98
|
-
/** @internal */
|
|
99
|
-
exports.CrmPipelinesOneResponse$inboundSchema = z.object({
|
|
100
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
101
|
-
GetPipelineResponse: components.GetPipelineResponse$inboundSchema.optional(),
|
|
102
|
-
UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema
|
|
103
|
-
.optional(),
|
|
104
|
-
}).transform((v) => {
|
|
105
|
-
return (0, primitives_js_1.remap)(v, {
|
|
106
|
-
"HttpMeta": "httpMeta",
|
|
107
|
-
"GetPipelineResponse": "getPipelineResponse",
|
|
108
|
-
"UnexpectedErrorResponse": "unexpectedErrorResponse",
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
/** @internal */
|
|
112
|
-
exports.CrmPipelinesOneResponse$outboundSchema = z.object({
|
|
113
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
114
|
-
getPipelineResponse: components.GetPipelineResponse$outboundSchema.optional(),
|
|
115
|
-
unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema
|
|
116
|
-
.optional(),
|
|
117
|
-
}).transform((v) => {
|
|
118
|
-
return (0, primitives_js_1.remap)(v, {
|
|
119
|
-
httpMeta: "HttpMeta",
|
|
120
|
-
getPipelineResponse: "GetPipelineResponse",
|
|
121
|
-
unexpectedErrorResponse: "UnexpectedErrorResponse",
|
|
122
|
-
});
|
|
123
|
-
});
|
|
124
|
-
/**
|
|
125
|
-
* @internal
|
|
126
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
127
|
-
*/
|
|
128
|
-
var CrmPipelinesOneResponse$;
|
|
129
|
-
(function (CrmPipelinesOneResponse$) {
|
|
130
|
-
/** @deprecated use `CrmPipelinesOneResponse$inboundSchema` instead. */
|
|
131
|
-
CrmPipelinesOneResponse$.inboundSchema = exports.CrmPipelinesOneResponse$inboundSchema;
|
|
132
|
-
/** @deprecated use `CrmPipelinesOneResponse$outboundSchema` instead. */
|
|
133
|
-
CrmPipelinesOneResponse$.outboundSchema = exports.CrmPipelinesOneResponse$outboundSchema;
|
|
134
|
-
})(CrmPipelinesOneResponse$ || (exports.CrmPipelinesOneResponse$ = CrmPipelinesOneResponse$ = {}));
|
|
135
|
-
function crmPipelinesOneResponseToJSON(crmPipelinesOneResponse) {
|
|
136
|
-
return JSON.stringify(exports.CrmPipelinesOneResponse$outboundSchema.parse(crmPipelinesOneResponse));
|
|
137
|
-
}
|
|
138
|
-
function crmPipelinesOneResponseFromJSON(jsonString) {
|
|
139
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CrmPipelinesOneResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CrmPipelinesOneResponse' from JSON`);
|
|
140
|
-
}
|
|
141
|
-
//# sourceMappingURL=crmpipelinesone.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crmpipelinesone.js","sourceRoot":"","sources":["../../src/models/operations/crmpipelinesone.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA0FH,oEAMC;AAED,wEAQC;AA+CD,oEAMC;AAED,wEAQC;AA4DD,sEAMC;AAED,0EAQC;AAnPD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AA6CrD,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,uBAAuB,CAOvC;AAPD,WAAiB,uBAAuB;IACtC,sEAAsE;IACzD,qCAAa,GAAG,4CAAoC,CAAC;IAClE,uEAAuE;IAC1D,sCAAc,GAAG,6CAAqC,CAAC;AAGtE,CAAC,EAPgB,uBAAuB,uCAAvB,uBAAuB,QAOvC;AAED,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBA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wB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,6CAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,8CAAsC,CAAC;AAGvE,CAAC,EAPgB,wBAAwB,wCAAxB,wBAAwB,QAOxC;AAED,SAAgB,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,8CAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAED,SAAgB,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import * as components from "../components/index.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export type CrmPipelinesUpdateGlobals = {
|
|
6
|
-
/**
|
|
7
|
-
* ID of the consumer which you want to get or push data from
|
|
8
|
-
*/
|
|
9
|
-
consumerId?: string | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* The ID of your Unify application
|
|
12
|
-
*/
|
|
13
|
-
appId?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
export type CrmPipelinesUpdateRequest = {
|
|
16
|
-
/**
|
|
17
|
-
* ID of the record you are acting upon.
|
|
18
|
-
*/
|
|
19
|
-
id: string;
|
|
20
|
-
/**
|
|
21
|
-
* Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
|
|
22
|
-
*/
|
|
23
|
-
serviceId?: string | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Include raw response. Mostly used for debugging purposes
|
|
26
|
-
*/
|
|
27
|
-
raw?: boolean | undefined;
|
|
28
|
-
pipeline: components.PipelineInput;
|
|
29
|
-
};
|
|
30
|
-
export type CrmPipelinesUpdateResponse = {
|
|
31
|
-
httpMeta: components.HTTPMetadata;
|
|
32
|
-
/**
|
|
33
|
-
* Pipeline updated
|
|
34
|
-
*/
|
|
35
|
-
updatePipelineResponse?: components.UpdatePipelineResponse | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Unexpected error
|
|
38
|
-
*/
|
|
39
|
-
unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined;
|
|
40
|
-
};
|
|
41
|
-
/** @internal */
|
|
42
|
-
export declare const CrmPipelinesUpdateGlobals$inboundSchema: z.ZodType<CrmPipelinesUpdateGlobals, z.ZodTypeDef, unknown>;
|
|
43
|
-
/** @internal */
|
|
44
|
-
export type CrmPipelinesUpdateGlobals$Outbound = {
|
|
45
|
-
consumerId?: string | undefined;
|
|
46
|
-
appId?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
/** @internal */
|
|
49
|
-
export declare const CrmPipelinesUpdateGlobals$outboundSchema: z.ZodType<CrmPipelinesUpdateGlobals$Outbound, z.ZodTypeDef, CrmPipelinesUpdateGlobals>;
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
export declare namespace CrmPipelinesUpdateGlobals$ {
|
|
55
|
-
/** @deprecated use `CrmPipelinesUpdateGlobals$inboundSchema` instead. */
|
|
56
|
-
const inboundSchema: z.ZodType<CrmPipelinesUpdateGlobals, z.ZodTypeDef, unknown>;
|
|
57
|
-
/** @deprecated use `CrmPipelinesUpdateGlobals$outboundSchema` instead. */
|
|
58
|
-
const outboundSchema: z.ZodType<CrmPipelinesUpdateGlobals$Outbound, z.ZodTypeDef, CrmPipelinesUpdateGlobals>;
|
|
59
|
-
/** @deprecated use `CrmPipelinesUpdateGlobals$Outbound` instead. */
|
|
60
|
-
type Outbound = CrmPipelinesUpdateGlobals$Outbound;
|
|
61
|
-
}
|
|
62
|
-
export declare function crmPipelinesUpdateGlobalsToJSON(crmPipelinesUpdateGlobals: CrmPipelinesUpdateGlobals): string;
|
|
63
|
-
export declare function crmPipelinesUpdateGlobalsFromJSON(jsonString: string): SafeParseResult<CrmPipelinesUpdateGlobals, SDKValidationError>;
|
|
64
|
-
/** @internal */
|
|
65
|
-
export declare const CrmPipelinesUpdateRequest$inboundSchema: z.ZodType<CrmPipelinesUpdateRequest, z.ZodTypeDef, unknown>;
|
|
66
|
-
/** @internal */
|
|
67
|
-
export type CrmPipelinesUpdateRequest$Outbound = {
|
|
68
|
-
id: string;
|
|
69
|
-
serviceId?: string | undefined;
|
|
70
|
-
raw: boolean;
|
|
71
|
-
Pipeline: components.PipelineInput$Outbound;
|
|
72
|
-
};
|
|
73
|
-
/** @internal */
|
|
74
|
-
export declare const CrmPipelinesUpdateRequest$outboundSchema: z.ZodType<CrmPipelinesUpdateRequest$Outbound, z.ZodTypeDef, CrmPipelinesUpdateRequest>;
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
-
*/
|
|
79
|
-
export declare namespace CrmPipelinesUpdateRequest$ {
|
|
80
|
-
/** @deprecated use `CrmPipelinesUpdateRequest$inboundSchema` instead. */
|
|
81
|
-
const inboundSchema: z.ZodType<CrmPipelinesUpdateRequest, z.ZodTypeDef, unknown>;
|
|
82
|
-
/** @deprecated use `CrmPipelinesUpdateRequest$outboundSchema` instead. */
|
|
83
|
-
const outboundSchema: z.ZodType<CrmPipelinesUpdateRequest$Outbound, z.ZodTypeDef, CrmPipelinesUpdateRequest>;
|
|
84
|
-
/** @deprecated use `CrmPipelinesUpdateRequest$Outbound` instead. */
|
|
85
|
-
type Outbound = CrmPipelinesUpdateRequest$Outbound;
|
|
86
|
-
}
|
|
87
|
-
export declare function crmPipelinesUpdateRequestToJSON(crmPipelinesUpdateRequest: CrmPipelinesUpdateRequest): string;
|
|
88
|
-
export declare function crmPipelinesUpdateRequestFromJSON(jsonString: string): SafeParseResult<CrmPipelinesUpdateRequest, SDKValidationError>;
|
|
89
|
-
/** @internal */
|
|
90
|
-
export declare const CrmPipelinesUpdateResponse$inboundSchema: z.ZodType<CrmPipelinesUpdateResponse, z.ZodTypeDef, unknown>;
|
|
91
|
-
/** @internal */
|
|
92
|
-
export type CrmPipelinesUpdateResponse$Outbound = {
|
|
93
|
-
HttpMeta: components.HTTPMetadata$Outbound;
|
|
94
|
-
UpdatePipelineResponse?: components.UpdatePipelineResponse$Outbound | undefined;
|
|
95
|
-
UnexpectedErrorResponse?: components.UnexpectedErrorResponse$Outbound | undefined;
|
|
96
|
-
};
|
|
97
|
-
/** @internal */
|
|
98
|
-
export declare const CrmPipelinesUpdateResponse$outboundSchema: z.ZodType<CrmPipelinesUpdateResponse$Outbound, z.ZodTypeDef, CrmPipelinesUpdateResponse>;
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
102
|
-
*/
|
|
103
|
-
export declare namespace CrmPipelinesUpdateResponse$ {
|
|
104
|
-
/** @deprecated use `CrmPipelinesUpdateResponse$inboundSchema` instead. */
|
|
105
|
-
const inboundSchema: z.ZodType<CrmPipelinesUpdateResponse, z.ZodTypeDef, unknown>;
|
|
106
|
-
/** @deprecated use `CrmPipelinesUpdateResponse$outboundSchema` instead. */
|
|
107
|
-
const outboundSchema: z.ZodType<CrmPipelinesUpdateResponse$Outbound, z.ZodTypeDef, CrmPipelinesUpdateResponse>;
|
|
108
|
-
/** @deprecated use `CrmPipelinesUpdateResponse$Outbound` instead. */
|
|
109
|
-
type Outbound = CrmPipelinesUpdateResponse$Outbound;
|
|
110
|
-
}
|
|
111
|
-
export declare function crmPipelinesUpdateResponseToJSON(crmPipelinesUpdateResponse: CrmPipelinesUpdateResponse): string;
|
|
112
|
-
export declare function crmPipelinesUpdateResponseFromJSON(jsonString: string): SafeParseResult<CrmPipelinesUpdateResponse, SDKValidationError>;
|
|
113
|
-
//# sourceMappingURL=crmpipelinesupdate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crmpipelinesupdate.d.ts","sourceRoot":"","sources":["../../src/models/operations/crmpipelinesupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,UAAU,CAAC,aAAa,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,sBAAsB,CAAC,EAAE,UAAU,CAAC,sBAAsB,GAAG,SAAS,CAAC;IACvE;;OAEG;IACH,uBAAuB,CAAC,EAAE,UAAU,CAAC,uBAAuB,GAAG,SAAS,CAAC;CAC1E,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,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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.CrmPipelinesUpdateResponse$ = exports.CrmPipelinesUpdateResponse$outboundSchema = exports.CrmPipelinesUpdateResponse$inboundSchema = exports.CrmPipelinesUpdateRequest$ = exports.CrmPipelinesUpdateRequest$outboundSchema = exports.CrmPipelinesUpdateRequest$inboundSchema = exports.CrmPipelinesUpdateGlobals$ = exports.CrmPipelinesUpdateGlobals$outboundSchema = exports.CrmPipelinesUpdateGlobals$inboundSchema = void 0;
|
|
30
|
-
exports.crmPipelinesUpdateGlobalsToJSON = crmPipelinesUpdateGlobalsToJSON;
|
|
31
|
-
exports.crmPipelinesUpdateGlobalsFromJSON = crmPipelinesUpdateGlobalsFromJSON;
|
|
32
|
-
exports.crmPipelinesUpdateRequestToJSON = crmPipelinesUpdateRequestToJSON;
|
|
33
|
-
exports.crmPipelinesUpdateRequestFromJSON = crmPipelinesUpdateRequestFromJSON;
|
|
34
|
-
exports.crmPipelinesUpdateResponseToJSON = crmPipelinesUpdateResponseToJSON;
|
|
35
|
-
exports.crmPipelinesUpdateResponseFromJSON = crmPipelinesUpdateResponseFromJSON;
|
|
36
|
-
const z = __importStar(require("zod"));
|
|
37
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
38
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
39
|
-
const components = __importStar(require("../components/index.js"));
|
|
40
|
-
/** @internal */
|
|
41
|
-
exports.CrmPipelinesUpdateGlobals$inboundSchema = z.object({
|
|
42
|
-
consumerId: z.string().optional(),
|
|
43
|
-
appId: z.string().optional(),
|
|
44
|
-
});
|
|
45
|
-
/** @internal */
|
|
46
|
-
exports.CrmPipelinesUpdateGlobals$outboundSchema = z.object({
|
|
47
|
-
consumerId: z.string().optional(),
|
|
48
|
-
appId: z.string().optional(),
|
|
49
|
-
});
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
var CrmPipelinesUpdateGlobals$;
|
|
55
|
-
(function (CrmPipelinesUpdateGlobals$) {
|
|
56
|
-
/** @deprecated use `CrmPipelinesUpdateGlobals$inboundSchema` instead. */
|
|
57
|
-
CrmPipelinesUpdateGlobals$.inboundSchema = exports.CrmPipelinesUpdateGlobals$inboundSchema;
|
|
58
|
-
/** @deprecated use `CrmPipelinesUpdateGlobals$outboundSchema` instead. */
|
|
59
|
-
CrmPipelinesUpdateGlobals$.outboundSchema = exports.CrmPipelinesUpdateGlobals$outboundSchema;
|
|
60
|
-
})(CrmPipelinesUpdateGlobals$ || (exports.CrmPipelinesUpdateGlobals$ = CrmPipelinesUpdateGlobals$ = {}));
|
|
61
|
-
function crmPipelinesUpdateGlobalsToJSON(crmPipelinesUpdateGlobals) {
|
|
62
|
-
return JSON.stringify(exports.CrmPipelinesUpdateGlobals$outboundSchema.parse(crmPipelinesUpdateGlobals));
|
|
63
|
-
}
|
|
64
|
-
function crmPipelinesUpdateGlobalsFromJSON(jsonString) {
|
|
65
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CrmPipelinesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CrmPipelinesUpdateGlobals' from JSON`);
|
|
66
|
-
}
|
|
67
|
-
/** @internal */
|
|
68
|
-
exports.CrmPipelinesUpdateRequest$inboundSchema = z.object({
|
|
69
|
-
id: z.string(),
|
|
70
|
-
serviceId: z.string().optional(),
|
|
71
|
-
raw: z.boolean().default(false),
|
|
72
|
-
Pipeline: components.PipelineInput$inboundSchema,
|
|
73
|
-
}).transform((v) => {
|
|
74
|
-
return (0, primitives_js_1.remap)(v, {
|
|
75
|
-
"Pipeline": "pipeline",
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
/** @internal */
|
|
79
|
-
exports.CrmPipelinesUpdateRequest$outboundSchema = z.object({
|
|
80
|
-
id: z.string(),
|
|
81
|
-
serviceId: z.string().optional(),
|
|
82
|
-
raw: z.boolean().default(false),
|
|
83
|
-
pipeline: components.PipelineInput$outboundSchema,
|
|
84
|
-
}).transform((v) => {
|
|
85
|
-
return (0, primitives_js_1.remap)(v, {
|
|
86
|
-
pipeline: "Pipeline",
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
92
|
-
*/
|
|
93
|
-
var CrmPipelinesUpdateRequest$;
|
|
94
|
-
(function (CrmPipelinesUpdateRequest$) {
|
|
95
|
-
/** @deprecated use `CrmPipelinesUpdateRequest$inboundSchema` instead. */
|
|
96
|
-
CrmPipelinesUpdateRequest$.inboundSchema = exports.CrmPipelinesUpdateRequest$inboundSchema;
|
|
97
|
-
/** @deprecated use `CrmPipelinesUpdateRequest$outboundSchema` instead. */
|
|
98
|
-
CrmPipelinesUpdateRequest$.outboundSchema = exports.CrmPipelinesUpdateRequest$outboundSchema;
|
|
99
|
-
})(CrmPipelinesUpdateRequest$ || (exports.CrmPipelinesUpdateRequest$ = CrmPipelinesUpdateRequest$ = {}));
|
|
100
|
-
function crmPipelinesUpdateRequestToJSON(crmPipelinesUpdateRequest) {
|
|
101
|
-
return JSON.stringify(exports.CrmPipelinesUpdateRequest$outboundSchema.parse(crmPipelinesUpdateRequest));
|
|
102
|
-
}
|
|
103
|
-
function crmPipelinesUpdateRequestFromJSON(jsonString) {
|
|
104
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CrmPipelinesUpdateRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CrmPipelinesUpdateRequest' from JSON`);
|
|
105
|
-
}
|
|
106
|
-
/** @internal */
|
|
107
|
-
exports.CrmPipelinesUpdateResponse$inboundSchema = z.object({
|
|
108
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
109
|
-
UpdatePipelineResponse: components.UpdatePipelineResponse$inboundSchema
|
|
110
|
-
.optional(),
|
|
111
|
-
UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema
|
|
112
|
-
.optional(),
|
|
113
|
-
}).transform((v) => {
|
|
114
|
-
return (0, primitives_js_1.remap)(v, {
|
|
115
|
-
"HttpMeta": "httpMeta",
|
|
116
|
-
"UpdatePipelineResponse": "updatePipelineResponse",
|
|
117
|
-
"UnexpectedErrorResponse": "unexpectedErrorResponse",
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
/** @internal */
|
|
121
|
-
exports.CrmPipelinesUpdateResponse$outboundSchema = z.object({
|
|
122
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
123
|
-
updatePipelineResponse: components.UpdatePipelineResponse$outboundSchema
|
|
124
|
-
.optional(),
|
|
125
|
-
unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema
|
|
126
|
-
.optional(),
|
|
127
|
-
}).transform((v) => {
|
|
128
|
-
return (0, primitives_js_1.remap)(v, {
|
|
129
|
-
httpMeta: "HttpMeta",
|
|
130
|
-
updatePipelineResponse: "UpdatePipelineResponse",
|
|
131
|
-
unexpectedErrorResponse: "UnexpectedErrorResponse",
|
|
132
|
-
});
|
|
133
|
-
});
|
|
134
|
-
/**
|
|
135
|
-
* @internal
|
|
136
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
137
|
-
*/
|
|
138
|
-
var CrmPipelinesUpdateResponse$;
|
|
139
|
-
(function (CrmPipelinesUpdateResponse$) {
|
|
140
|
-
/** @deprecated use `CrmPipelinesUpdateResponse$inboundSchema` instead. */
|
|
141
|
-
CrmPipelinesUpdateResponse$.inboundSchema = exports.CrmPipelinesUpdateResponse$inboundSchema;
|
|
142
|
-
/** @deprecated use `CrmPipelinesUpdateResponse$outboundSchema` instead. */
|
|
143
|
-
CrmPipelinesUpdateResponse$.outboundSchema = exports.CrmPipelinesUpdateResponse$outboundSchema;
|
|
144
|
-
})(CrmPipelinesUpdateResponse$ || (exports.CrmPipelinesUpdateResponse$ = CrmPipelinesUpdateResponse$ = {}));
|
|
145
|
-
function crmPipelinesUpdateResponseToJSON(crmPipelinesUpdateResponse) {
|
|
146
|
-
return JSON.stringify(exports.CrmPipelinesUpdateResponse$outboundSchema.parse(crmPipelinesUpdateResponse));
|
|
147
|
-
}
|
|
148
|
-
function crmPipelinesUpdateResponseFromJSON(jsonString) {
|
|
149
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CrmPipelinesUpdateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CrmPipelinesUpdateResponse' from JSON`);
|
|
150
|
-
}
|
|
151
|
-
//# sourceMappingURL=crmpipelinesupdate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crmpipelinesupdate.js","sourceRoot":"","sources":["../../src/models/operations/crmpipelinesupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAuFH,0EAMC;AAED,8EAQC;AAuDD,0EAMC;AAED,8EAQC;AAgED,4EAMC;AAED,gFAQC;AA5PD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AA0CrD,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,+CAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,gDAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,0CAA1B,0BAA0B,QAO1C;AAED,SAAgB,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AAED,SAAgB,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAAuC,CAAC,KA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APD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C;AAED,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
package/sdk/agedcreditors.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class AgedCreditors extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Get Aged Creditors
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Get Aged Creditors
|
|
9
|
-
*/
|
|
10
|
-
get(request: operations.AccountingAgedCreditorsOneRequest, options?: RequestOptions): Promise<operations.AccountingAgedCreditorsOneResponse>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=agedcreditors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agedcreditors.d.ts","sourceRoot":"","sources":["../src/sdk/agedcreditors.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;CAO1D"}
|
package/sdk/agedcreditors.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.AgedCreditors = void 0;
|
|
7
|
-
const accountingAgedCreditorsGet_js_1 = require("../funcs/accountingAgedCreditorsGet.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
class AgedCreditors extends sdks_js_1.ClientSDK {
|
|
11
|
-
/**
|
|
12
|
-
* Get Aged Creditors
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Get Aged Creditors
|
|
16
|
-
*/
|
|
17
|
-
async get(request, options) {
|
|
18
|
-
return (0, fp_js_1.unwrapAsync)((0, accountingAgedCreditorsGet_js_1.accountingAgedCreditorsGet)(this, request, options));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.AgedCreditors = AgedCreditors;
|
|
22
|
-
//# sourceMappingURL=agedcreditors.js.map
|
package/sdk/agedcreditors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agedcreditors.js","sourceRoot":"","sources":["../src/sdk/agedcreditors.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,aAAc,SAAQ,mBAAS;IAC1C;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAAqD,EACrD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAjBD,sCAiBC"}
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { ApideckCore } from "../core.js";
|
|
6
|
-
import {
|
|
7
|
-
encodeDeepObjectQuery,
|
|
8
|
-
encodeFormQuery,
|
|
9
|
-
encodeSimple,
|
|
10
|
-
queryJoin,
|
|
11
|
-
} from "../lib/encodings.js";
|
|
12
|
-
import * as M from "../lib/matchers.js";
|
|
13
|
-
import { safeParse } from "../lib/schemas.js";
|
|
14
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
15
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
16
|
-
import { pathToFunc } from "../lib/url.js";
|
|
17
|
-
import { APIError } from "../models/errors/apierror.js";
|
|
18
|
-
import {
|
|
19
|
-
ConnectionError,
|
|
20
|
-
InvalidRequestError,
|
|
21
|
-
RequestAbortedError,
|
|
22
|
-
RequestTimeoutError,
|
|
23
|
-
UnexpectedClientError,
|
|
24
|
-
} from "../models/errors/httpclienterrors.js";
|
|
25
|
-
import * as errors from "../models/errors/index.js";
|
|
26
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
27
|
-
import * as operations from "../models/operations/index.js";
|
|
28
|
-
import { Result } from "../types/fp.js";
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Get Aged Creditors
|
|
32
|
-
*
|
|
33
|
-
* @remarks
|
|
34
|
-
* Get Aged Creditors
|
|
35
|
-
*/
|
|
36
|
-
export async function accountingAgedCreditorsGet(
|
|
37
|
-
client: ApideckCore,
|
|
38
|
-
request: operations.AccountingAgedCreditorsOneRequest,
|
|
39
|
-
options?: RequestOptions,
|
|
40
|
-
): Promise<
|
|
41
|
-
Result<
|
|
42
|
-
operations.AccountingAgedCreditorsOneResponse,
|
|
43
|
-
| errors.BadRequestResponse
|
|
44
|
-
| errors.UnauthorizedResponse
|
|
45
|
-
| errors.PaymentRequiredResponse
|
|
46
|
-
| errors.NotFoundResponse
|
|
47
|
-
| errors.UnprocessableResponse
|
|
48
|
-
| APIError
|
|
49
|
-
| SDKValidationError
|
|
50
|
-
| UnexpectedClientError
|
|
51
|
-
| InvalidRequestError
|
|
52
|
-
| RequestAbortedError
|
|
53
|
-
| RequestTimeoutError
|
|
54
|
-
| ConnectionError
|
|
55
|
-
>
|
|
56
|
-
> {
|
|
57
|
-
const parsed = safeParse(
|
|
58
|
-
request,
|
|
59
|
-
(value) =>
|
|
60
|
-
operations.AccountingAgedCreditorsOneRequest$outboundSchema.parse(value),
|
|
61
|
-
"Input validation failed",
|
|
62
|
-
);
|
|
63
|
-
if (!parsed.ok) {
|
|
64
|
-
return parsed;
|
|
65
|
-
}
|
|
66
|
-
const payload = parsed.value;
|
|
67
|
-
const body = null;
|
|
68
|
-
|
|
69
|
-
const path = pathToFunc("/accounting/aged-creditors")();
|
|
70
|
-
|
|
71
|
-
const query = queryJoin(
|
|
72
|
-
encodeDeepObjectQuery({
|
|
73
|
-
"filter": payload.filter,
|
|
74
|
-
"pass_through": payload.pass_through,
|
|
75
|
-
}),
|
|
76
|
-
encodeFormQuery({
|
|
77
|
-
"fields": payload.fields,
|
|
78
|
-
"raw": payload.raw,
|
|
79
|
-
}),
|
|
80
|
-
);
|
|
81
|
-
|
|
82
|
-
const headers = new Headers({
|
|
83
|
-
Accept: "application/json",
|
|
84
|
-
"x-apideck-service-id": encodeSimple(
|
|
85
|
-
"x-apideck-service-id",
|
|
86
|
-
payload.serviceId,
|
|
87
|
-
{ explode: false, charEncoding: "none" },
|
|
88
|
-
),
|
|
89
|
-
"x-apideck-app-id": encodeSimple(
|
|
90
|
-
"x-apideck-app-id",
|
|
91
|
-
client._options.appId,
|
|
92
|
-
{ explode: false, charEncoding: "none" },
|
|
93
|
-
),
|
|
94
|
-
"x-apideck-consumer-id": encodeSimple(
|
|
95
|
-
"x-apideck-consumer-id",
|
|
96
|
-
client._options.consumerId,
|
|
97
|
-
{ explode: false, charEncoding: "none" },
|
|
98
|
-
),
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
const secConfig = await extractSecurity(client._options.apiKey);
|
|
102
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
103
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
104
|
-
|
|
105
|
-
const context = {
|
|
106
|
-
operationID: "accounting.agedCreditorsOne",
|
|
107
|
-
oAuth2Scopes: [],
|
|
108
|
-
|
|
109
|
-
resolvedSecurity: requestSecurity,
|
|
110
|
-
|
|
111
|
-
securitySource: client._options.apiKey,
|
|
112
|
-
retryConfig: options?.retries
|
|
113
|
-
|| client._options.retryConfig
|
|
114
|
-
|| {
|
|
115
|
-
strategy: "backoff",
|
|
116
|
-
backoff: {
|
|
117
|
-
initialInterval: 500,
|
|
118
|
-
maxInterval: 60000,
|
|
119
|
-
exponent: 1.5,
|
|
120
|
-
maxElapsedTime: 3600000,
|
|
121
|
-
},
|
|
122
|
-
retryConnectionErrors: true,
|
|
123
|
-
}
|
|
124
|
-
|| { strategy: "none" },
|
|
125
|
-
retryCodes: options?.retryCodes || ["5XX"],
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
const requestRes = client._createRequest(context, {
|
|
129
|
-
security: requestSecurity,
|
|
130
|
-
method: "GET",
|
|
131
|
-
baseURL: options?.serverURL,
|
|
132
|
-
path: path,
|
|
133
|
-
headers: headers,
|
|
134
|
-
query: query,
|
|
135
|
-
body: body,
|
|
136
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
137
|
-
}, options);
|
|
138
|
-
if (!requestRes.ok) {
|
|
139
|
-
return requestRes;
|
|
140
|
-
}
|
|
141
|
-
const req = requestRes.value;
|
|
142
|
-
|
|
143
|
-
const doResult = await client._do(req, {
|
|
144
|
-
context,
|
|
145
|
-
errorCodes: ["400", "401", "402", "404", "422", "4XX", "5XX"],
|
|
146
|
-
retryConfig: context.retryConfig,
|
|
147
|
-
retryCodes: context.retryCodes,
|
|
148
|
-
});
|
|
149
|
-
if (!doResult.ok) {
|
|
150
|
-
return doResult;
|
|
151
|
-
}
|
|
152
|
-
const response = doResult.value;
|
|
153
|
-
|
|
154
|
-
const responseFields = {
|
|
155
|
-
HttpMeta: { Response: response, Request: req },
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
const [result] = await M.match<
|
|
159
|
-
operations.AccountingAgedCreditorsOneResponse,
|
|
160
|
-
| errors.BadRequestResponse
|
|
161
|
-
| errors.UnauthorizedResponse
|
|
162
|
-
| errors.PaymentRequiredResponse
|
|
163
|
-
| errors.NotFoundResponse
|
|
164
|
-
| errors.UnprocessableResponse
|
|
165
|
-
| APIError
|
|
166
|
-
| SDKValidationError
|
|
167
|
-
| UnexpectedClientError
|
|
168
|
-
| InvalidRequestError
|
|
169
|
-
| RequestAbortedError
|
|
170
|
-
| RequestTimeoutError
|
|
171
|
-
| ConnectionError
|
|
172
|
-
>(
|
|
173
|
-
M.json(200, operations.AccountingAgedCreditorsOneResponse$inboundSchema, {
|
|
174
|
-
key: "GetAgedCreditorsResponse",
|
|
175
|
-
}),
|
|
176
|
-
M.jsonErr(400, errors.BadRequestResponse$inboundSchema),
|
|
177
|
-
M.jsonErr(401, errors.UnauthorizedResponse$inboundSchema),
|
|
178
|
-
M.jsonErr(402, errors.PaymentRequiredResponse$inboundSchema),
|
|
179
|
-
M.jsonErr(404, errors.NotFoundResponse$inboundSchema),
|
|
180
|
-
M.jsonErr(422, errors.UnprocessableResponse$inboundSchema),
|
|
181
|
-
M.fail(["4XX", "5XX"]),
|
|
182
|
-
M.json(
|
|
183
|
-
"default",
|
|
184
|
-
operations.AccountingAgedCreditorsOneResponse$inboundSchema,
|
|
185
|
-
{ key: "UnexpectedErrorResponse" },
|
|
186
|
-
),
|
|
187
|
-
)(response, req, { extraFields: responseFields });
|
|
188
|
-
if (!result.ok) {
|
|
189
|
-
return result;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
return result;
|
|
193
|
-
}
|