@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.
Files changed (137) hide show
  1. package/README.md +0 -13
  2. package/docs/sdks/pipelines/README.md +0 -542
  3. package/lib/config.d.ts +3 -3
  4. package/lib/config.js +3 -3
  5. package/models/components/bill.d.ts +5 -0
  6. package/models/components/bill.d.ts.map +1 -1
  7. package/models/components/bill.js +9 -0
  8. package/models/components/bill.js.map +1 -1
  9. package/models/components/index.d.ts +0 -8
  10. package/models/components/index.d.ts.map +1 -1
  11. package/models/components/index.js +0 -8
  12. package/models/components/index.js.map +1 -1
  13. package/models/components/ledgeraccount.d.ts +5 -0
  14. package/models/components/ledgeraccount.d.ts.map +1 -1
  15. package/models/components/ledgeraccount.js +9 -0
  16. package/models/components/ledgeraccount.js.map +1 -1
  17. package/models/components/supplier.d.ts +5 -0
  18. package/models/components/supplier.d.ts.map +1 -1
  19. package/models/components/supplier.js +9 -0
  20. package/models/components/supplier.js.map +1 -1
  21. package/models/operations/index.d.ts +0 -5
  22. package/models/operations/index.d.ts.map +1 -1
  23. package/models/operations/index.js +0 -5
  24. package/models/operations/index.js.map +1 -1
  25. package/package.json +1 -1
  26. package/sdk/accounting.d.ts +0 -3
  27. package/sdk/accounting.d.ts.map +1 -1
  28. package/sdk/accounting.js +0 -4
  29. package/sdk/accounting.js.map +1 -1
  30. package/sdk/pipelines.d.ts +0 -28
  31. package/sdk/pipelines.d.ts.map +1 -1
  32. package/sdk/pipelines.js +0 -41
  33. package/sdk/pipelines.js.map +1 -1
  34. package/src/lib/config.ts +3 -3
  35. package/src/models/components/bill.ts +18 -0
  36. package/src/models/components/index.ts +0 -8
  37. package/src/models/components/ledgeraccount.ts +18 -0
  38. package/src/models/components/supplier.ts +18 -0
  39. package/src/models/operations/index.ts +0 -5
  40. package/src/sdk/accounting.ts +0 -6
  41. package/src/sdk/pipelines.ts +0 -73
  42. package/docs/sdks/agedcreditors/README.md +0 -115
  43. package/funcs/accountingAgedCreditorsGet.d.ts +0 -16
  44. package/funcs/accountingAgedCreditorsGet.d.ts.map +0 -1
  45. package/funcs/accountingAgedCreditorsGet.js +0 -122
  46. package/funcs/accountingAgedCreditorsGet.js.map +0 -1
  47. package/funcs/crmPipelinesCreate.d.ts +0 -16
  48. package/funcs/crmPipelinesCreate.d.ts.map +0 -1
  49. package/funcs/crmPipelinesCreate.js +0 -121
  50. package/funcs/crmPipelinesCreate.js.map +0 -1
  51. package/funcs/crmPipelinesDelete.d.ts +0 -16
  52. package/funcs/crmPipelinesDelete.d.ts.map +0 -1
  53. package/funcs/crmPipelinesDelete.js +0 -126
  54. package/funcs/crmPipelinesDelete.js.map +0 -1
  55. package/funcs/crmPipelinesGet.d.ts +0 -16
  56. package/funcs/crmPipelinesGet.d.ts.map +0 -1
  57. package/funcs/crmPipelinesGet.js +0 -127
  58. package/funcs/crmPipelinesGet.js.map +0 -1
  59. package/funcs/crmPipelinesUpdate.d.ts +0 -16
  60. package/funcs/crmPipelinesUpdate.d.ts.map +0 -1
  61. package/funcs/crmPipelinesUpdate.js +0 -127
  62. package/funcs/crmPipelinesUpdate.js.map +0 -1
  63. package/models/components/agedcreditors.d.ts +0 -51
  64. package/models/components/agedcreditors.d.ts.map +0 -1
  65. package/models/components/agedcreditors.js +0 -88
  66. package/models/components/agedcreditors.js.map +0 -1
  67. package/models/components/createpipelineresponse.d.ts +0 -58
  68. package/models/components/createpipelineresponse.d.ts.map +0 -1
  69. package/models/components/createpipelineresponse.js +0 -79
  70. package/models/components/createpipelineresponse.js.map +0 -1
  71. package/models/components/deletepipelineresponse.d.ts +0 -58
  72. package/models/components/deletepipelineresponse.d.ts.map +0 -1
  73. package/models/components/deletepipelineresponse.js +0 -79
  74. package/models/components/deletepipelineresponse.js.map +0 -1
  75. package/models/components/getagedcreditorsresponse.d.ts +0 -58
  76. package/models/components/getagedcreditorsresponse.d.ts.map +0 -1
  77. package/models/components/getagedcreditorsresponse.js +0 -79
  78. package/models/components/getagedcreditorsresponse.js.map +0 -1
  79. package/models/components/getpipelineresponse.d.ts +0 -58
  80. package/models/components/getpipelineresponse.d.ts.map +0 -1
  81. package/models/components/getpipelineresponse.js +0 -79
  82. package/models/components/getpipelineresponse.js.map +0 -1
  83. package/models/components/outstandingbalancebysupplier.d.ts +0 -40
  84. package/models/components/outstandingbalancebysupplier.d.ts.map +0 -1
  85. package/models/components/outstandingbalancebysupplier.js +0 -77
  86. package/models/components/outstandingbalancebysupplier.js.map +0 -1
  87. package/models/components/pipelineinput.d.ts +0 -117
  88. package/models/components/pipelineinput.d.ts.map +0 -1
  89. package/models/components/pipelineinput.js +0 -133
  90. package/models/components/pipelineinput.js.map +0 -1
  91. package/models/components/updatepipelineresponse.d.ts +0 -58
  92. package/models/components/updatepipelineresponse.d.ts.map +0 -1
  93. package/models/components/updatepipelineresponse.js +0 -79
  94. package/models/components/updatepipelineresponse.js.map +0 -1
  95. package/models/operations/accountingagedcreditorsone.d.ts +0 -125
  96. package/models/operations/accountingagedcreditorsone.d.ts.map +0 -1
  97. package/models/operations/accountingagedcreditorsone.js +0 -153
  98. package/models/operations/accountingagedcreditorsone.js.map +0 -1
  99. package/models/operations/crmpipelinesadd.d.ts +0 -108
  100. package/models/operations/crmpipelinesadd.d.ts.map +0 -1
  101. package/models/operations/crmpipelinesadd.js +0 -149
  102. package/models/operations/crmpipelinesadd.js.map +0 -1
  103. package/models/operations/crmpipelinesdelete.d.ts +0 -111
  104. package/models/operations/crmpipelinesdelete.d.ts.map +0 -1
  105. package/models/operations/crmpipelinesdelete.js +0 -141
  106. package/models/operations/crmpipelinesdelete.js.map +0 -1
  107. package/models/operations/crmpipelinesone.d.ts +0 -116
  108. package/models/operations/crmpipelinesone.d.ts.map +0 -1
  109. package/models/operations/crmpipelinesone.js +0 -141
  110. package/models/operations/crmpipelinesone.js.map +0 -1
  111. package/models/operations/crmpipelinesupdate.d.ts +0 -113
  112. package/models/operations/crmpipelinesupdate.d.ts.map +0 -1
  113. package/models/operations/crmpipelinesupdate.js +0 -151
  114. package/models/operations/crmpipelinesupdate.js.map +0 -1
  115. package/sdk/agedcreditors.d.ts +0 -12
  116. package/sdk/agedcreditors.d.ts.map +0 -1
  117. package/sdk/agedcreditors.js +0 -22
  118. package/sdk/agedcreditors.js.map +0 -1
  119. package/src/funcs/accountingAgedCreditorsGet.ts +0 -193
  120. package/src/funcs/crmPipelinesCreate.ts +0 -179
  121. package/src/funcs/crmPipelinesDelete.ts +0 -185
  122. package/src/funcs/crmPipelinesGet.ts +0 -186
  123. package/src/funcs/crmPipelinesUpdate.ts +0 -186
  124. package/src/models/components/agedcreditors.ts +0 -120
  125. package/src/models/components/createpipelineresponse.ts +0 -119
  126. package/src/models/components/deletepipelineresponse.ts +0 -119
  127. package/src/models/components/getagedcreditorsresponse.ts +0 -119
  128. package/src/models/components/getpipelineresponse.ts +0 -119
  129. package/src/models/components/outstandingbalancebysupplier.ts +0 -109
  130. package/src/models/components/pipelineinput.ts +0 -233
  131. package/src/models/components/updatepipelineresponse.ts +0 -119
  132. package/src/models/operations/accountingagedcreditorsone.ts +0 -277
  133. package/src/models/operations/crmpipelinesadd.ts +0 -250
  134. package/src/models/operations/crmpipelinesdelete.ts +0 -245
  135. package/src/models/operations/crmpipelinesone.ts +0 -248
  136. package/src/models/operations/crmpipelinesupdate.ts +0 -257
  137. package/src/sdk/agedcreditors.ts +0 -27
@@ -1,79 +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.GetAgedCreditorsResponse$ = exports.GetAgedCreditorsResponse$outboundSchema = exports.GetAgedCreditorsResponse$inboundSchema = void 0;
30
- exports.getAgedCreditorsResponseToJSON = getAgedCreditorsResponseToJSON;
31
- exports.getAgedCreditorsResponseFromJSON = getAgedCreditorsResponseFromJSON;
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 agedcreditors_js_1 = require("./agedcreditors.js");
36
- /** @internal */
37
- exports.GetAgedCreditorsResponse$inboundSchema = z.object({
38
- status_code: z.number().int(),
39
- status: z.string(),
40
- service: z.string(),
41
- resource: z.string(),
42
- operation: z.string(),
43
- data: agedcreditors_js_1.AgedCreditors$inboundSchema,
44
- }).transform((v) => {
45
- return (0, primitives_js_1.remap)(v, {
46
- "status_code": "statusCode",
47
- });
48
- });
49
- /** @internal */
50
- exports.GetAgedCreditorsResponse$outboundSchema = z.object({
51
- statusCode: z.number().int(),
52
- status: z.string(),
53
- service: z.string(),
54
- resource: z.string(),
55
- operation: z.string(),
56
- data: agedcreditors_js_1.AgedCreditors$outboundSchema,
57
- }).transform((v) => {
58
- return (0, primitives_js_1.remap)(v, {
59
- statusCode: "status_code",
60
- });
61
- });
62
- /**
63
- * @internal
64
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
- */
66
- var GetAgedCreditorsResponse$;
67
- (function (GetAgedCreditorsResponse$) {
68
- /** @deprecated use `GetAgedCreditorsResponse$inboundSchema` instead. */
69
- GetAgedCreditorsResponse$.inboundSchema = exports.GetAgedCreditorsResponse$inboundSchema;
70
- /** @deprecated use `GetAgedCreditorsResponse$outboundSchema` instead. */
71
- GetAgedCreditorsResponse$.outboundSchema = exports.GetAgedCreditorsResponse$outboundSchema;
72
- })(GetAgedCreditorsResponse$ || (exports.GetAgedCreditorsResponse$ = GetAgedCreditorsResponse$ = {}));
73
- function getAgedCreditorsResponseToJSON(getAgedCreditorsResponse) {
74
- return JSON.stringify(exports.GetAgedCreditorsResponse$outboundSchema.parse(getAgedCreditorsResponse));
75
- }
76
- function getAgedCreditorsResponseFromJSON(jsonString) {
77
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgedCreditorsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgedCreditorsResponse' from JSON`);
78
- }
79
- //# sourceMappingURL=getagedcreditorsresponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getagedcreditorsresponse.js","sourceRoot":"","sources":["../../src/models/components/getagedcreditorsresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGH,wEAMC;AAED,4EAQC;AAlHD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,yDAK4B;AA6B5B,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC7B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,8CAA2B;CAClC,CAAC,CAAC,SAAS,CA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SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { Pipeline, Pipeline$Outbound } from "./pipeline.js";
5
- /**
6
- * Pipeline
7
- */
8
- export type GetPipelineResponse = {
9
- /**
10
- * HTTP Response Status Code
11
- */
12
- statusCode: number;
13
- /**
14
- * HTTP Response Status
15
- */
16
- status: string;
17
- /**
18
- * Apideck ID of service provider
19
- */
20
- service: string;
21
- /**
22
- * Unified API resource name
23
- */
24
- resource: string;
25
- /**
26
- * Operation performed
27
- */
28
- operation: string;
29
- data: Pipeline;
30
- };
31
- /** @internal */
32
- export declare const GetPipelineResponse$inboundSchema: z.ZodType<GetPipelineResponse, z.ZodTypeDef, unknown>;
33
- /** @internal */
34
- export type GetPipelineResponse$Outbound = {
35
- status_code: number;
36
- status: string;
37
- service: string;
38
- resource: string;
39
- operation: string;
40
- data: Pipeline$Outbound;
41
- };
42
- /** @internal */
43
- export declare const GetPipelineResponse$outboundSchema: z.ZodType<GetPipelineResponse$Outbound, z.ZodTypeDef, GetPipelineResponse>;
44
- /**
45
- * @internal
46
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
- */
48
- export declare namespace GetPipelineResponse$ {
49
- /** @deprecated use `GetPipelineResponse$inboundSchema` instead. */
50
- const inboundSchema: z.ZodType<GetPipelineResponse, z.ZodTypeDef, unknown>;
51
- /** @deprecated use `GetPipelineResponse$outboundSchema` instead. */
52
- const outboundSchema: z.ZodType<GetPipelineResponse$Outbound, z.ZodTypeDef, GetPipelineResponse>;
53
- /** @deprecated use `GetPipelineResponse$Outbound` instead. */
54
- type Outbound = GetPipelineResponse$Outbound;
55
- }
56
- export declare function getPipelineResponseToJSON(getPipelineResponse: GetPipelineResponse): string;
57
- export declare function getPipelineResponseFromJSON(jsonString: string): SafeParseResult<GetPipelineResponse, SDKValidationError>;
58
- //# sourceMappingURL=getpipelineresponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getpipelinerespon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DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
@@ -1,79 +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.GetPipelineResponse$ = exports.GetPipelineResponse$outboundSchema = exports.GetPipelineResponse$inboundSchema = void 0;
30
- exports.getPipelineResponseToJSON = getPipelineResponseToJSON;
31
- exports.getPipelineResponseFromJSON = getPipelineResponseFromJSON;
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 pipeline_js_1 = require("./pipeline.js");
36
- /** @internal */
37
- exports.GetPipelineResponse$inboundSchema = z.object({
38
- status_code: z.number().int(),
39
- status: z.string(),
40
- service: z.string(),
41
- resource: z.string(),
42
- operation: z.string(),
43
- data: pipeline_js_1.Pipeline$inboundSchema,
44
- }).transform((v) => {
45
- return (0, primitives_js_1.remap)(v, {
46
- "status_code": "statusCode",
47
- });
48
- });
49
- /** @internal */
50
- exports.GetPipelineResponse$outboundSchema = z.object({
51
- statusCode: z.number().int(),
52
- status: z.string(),
53
- service: z.string(),
54
- resource: z.string(),
55
- operation: z.string(),
56
- data: pipeline_js_1.Pipeline$outboundSchema,
57
- }).transform((v) => {
58
- return (0, primitives_js_1.remap)(v, {
59
- statusCode: "status_code",
60
- });
61
- });
62
- /**
63
- * @internal
64
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
- */
66
- var GetPipelineResponse$;
67
- (function (GetPipelineResponse$) {
68
- /** @deprecated use `GetPipelineResponse$inboundSchema` instead. */
69
- GetPipelineResponse$.inboundSchema = exports.GetPipelineResponse$inboundSchema;
70
- /** @deprecated use `GetPipelineResponse$outboundSchema` instead. */
71
- GetPipelineResponse$.outboundSchema = exports.GetPipelineResponse$outboundSchema;
72
- })(GetPipelineResponse$ || (exports.GetPipelineResponse$ = GetPipelineResponse$ = {}));
73
- function getPipelineResponseToJSON(getPipelineResponse) {
74
- return JSON.stringify(exports.GetPipelineResponse$outboundSchema.parse(getPipelineResponse));
75
- }
76
- function getPipelineResponseFromJSON(jsonString) {
77
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPipelineResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPipelineResponse' from JSON`);
78
- }
79
- //# sourceMappingURL=getpipelineresponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getpipelineresponse.js","sourceRoot":"","sources":["../../src/models/components/getpipelineresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGH,8DAMC;AA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,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
@@ -1,40 +0,0 @@
1
- import * as z from "zod";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { OutstandingBalanceByCurrency, OutstandingBalanceByCurrency$Outbound } from "./outstandingbalancebycurrency.js";
5
- export type OutstandingBalanceBySupplier = {
6
- /**
7
- * Unique identifier for the supplier.
8
- */
9
- supplierId?: string | undefined;
10
- /**
11
- * Full name of the supplier.
12
- */
13
- supplierName?: string | undefined;
14
- outstandingBalancesByCurrency?: Array<OutstandingBalanceByCurrency> | undefined;
15
- };
16
- /** @internal */
17
- export declare const OutstandingBalanceBySupplier$inboundSchema: z.ZodType<OutstandingBalanceBySupplier, z.ZodTypeDef, unknown>;
18
- /** @internal */
19
- export type OutstandingBalanceBySupplier$Outbound = {
20
- supplier_id?: string | undefined;
21
- supplier_name?: string | undefined;
22
- outstanding_balances_by_currency?: Array<OutstandingBalanceByCurrency$Outbound> | undefined;
23
- };
24
- /** @internal */
25
- export declare const OutstandingBalanceBySupplier$outboundSchema: z.ZodType<OutstandingBalanceBySupplier$Outbound, z.ZodTypeDef, OutstandingBalanceBySupplier>;
26
- /**
27
- * @internal
28
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
- */
30
- export declare namespace OutstandingBalanceBySupplier$ {
31
- /** @deprecated use `OutstandingBalanceBySupplier$inboundSchema` instead. */
32
- const inboundSchema: z.ZodType<OutstandingBalanceBySupplier, z.ZodTypeDef, unknown>;
33
- /** @deprecated use `OutstandingBalanceBySupplier$outboundSchema` instead. */
34
- const outboundSchema: z.ZodType<OutstandingBalanceBySupplier$Outbound, z.ZodTypeDef, OutstandingBalanceBySupplier>;
35
- /** @deprecated use `OutstandingBalanceBySupplier$Outbound` instead. */
36
- type Outbound = OutstandingBalanceBySupplier$Outbound;
37
- }
38
- export declare function outstandingBalanceBySupplierToJSON(outstandingBalanceBySupplier: OutstandingBalanceBySupplier): string;
39
- export declare function outstandingBalanceBySupplierFromJSON(jsonString: string): SafeParseResult<OutstandingBalanceBySupplier, SDKValidationError>;
40
- //# sourceMappingURL=outstandingbalancebysupplier.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"outstandingbalancebysupplier.d.ts","sourceRoot":"","sources":["../../src/models/components/outstandingbalancebysupplier.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,6BAA6B,CAAC,EAC1B,KAAK,CAAC,4BAA4B,CAAC,GACnC,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,gCAAgC,CAAC,EAC7B,KAAK,CAAC,qCAAqC,CAAC,GAC5C,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAa5B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,6BAA6B,CAAC;IAC7C,4EAA4E;IACrE,MAAM,aAAa,gEAA6C,CAAC;IACxE,6EAA6E;IACtE,MAAM,cAAc,8FAA8C,CAAC;IAC1E,uEAAuE;IACvE,KAAY,QAAQ,GAAG,qCAAqC,CAAC;CAC9D;AAED,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AAED,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
@@ -1,77 +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.OutstandingBalanceBySupplier$ = exports.OutstandingBalanceBySupplier$outboundSchema = exports.OutstandingBalanceBySupplier$inboundSchema = void 0;
30
- exports.outstandingBalanceBySupplierToJSON = outstandingBalanceBySupplierToJSON;
31
- exports.outstandingBalanceBySupplierFromJSON = outstandingBalanceBySupplierFromJSON;
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 outstandingbalancebycurrency_js_1 = require("./outstandingbalancebycurrency.js");
36
- /** @internal */
37
- exports.OutstandingBalanceBySupplier$inboundSchema = z.object({
38
- supplier_id: z.string().optional(),
39
- supplier_name: z.string().optional(),
40
- outstanding_balances_by_currency: z.array(outstandingbalancebycurrency_js_1.OutstandingBalanceByCurrency$inboundSchema).optional(),
41
- }).transform((v) => {
42
- return (0, primitives_js_1.remap)(v, {
43
- "supplier_id": "supplierId",
44
- "supplier_name": "supplierName",
45
- "outstanding_balances_by_currency": "outstandingBalancesByCurrency",
46
- });
47
- });
48
- /** @internal */
49
- exports.OutstandingBalanceBySupplier$outboundSchema = z.object({
50
- supplierId: z.string().optional(),
51
- supplierName: z.string().optional(),
52
- outstandingBalancesByCurrency: z.array(outstandingbalancebycurrency_js_1.OutstandingBalanceByCurrency$outboundSchema).optional(),
53
- }).transform((v) => {
54
- return (0, primitives_js_1.remap)(v, {
55
- supplierId: "supplier_id",
56
- supplierName: "supplier_name",
57
- outstandingBalancesByCurrency: "outstanding_balances_by_currency",
58
- });
59
- });
60
- /**
61
- * @internal
62
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
- */
64
- var OutstandingBalanceBySupplier$;
65
- (function (OutstandingBalanceBySupplier$) {
66
- /** @deprecated use `OutstandingBalanceBySupplier$inboundSchema` instead. */
67
- OutstandingBalanceBySupplier$.inboundSchema = exports.OutstandingBalanceBySupplier$inboundSchema;
68
- /** @deprecated use `OutstandingBalanceBySupplier$outboundSchema` instead. */
69
- OutstandingBalanceBySupplier$.outboundSchema = exports.OutstandingBalanceBySupplier$outboundSchema;
70
- })(OutstandingBalanceBySupplier$ || (exports.OutstandingBalanceBySupplier$ = OutstandingBalanceBySupplier$ = {}));
71
- function outstandingBalanceBySupplierToJSON(outstandingBalanceBySupplier) {
72
- return JSON.stringify(exports.OutstandingBalanceBySupplier$outboundSchema.parse(outstandingBalanceBySupplier));
73
- }
74
- function outstandingBalanceBySupplierFromJSON(jsonString) {
75
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutstandingBalanceBySupplier$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutstandingBalanceBySupplier' from JSON`);
76
- }
77
- //# sourceMappingURL=outstandingbalancebysupplier.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"outstandingbalancebysupplier.js","sourceRoot":"","sources":["../../src/models/components/outstandingbalancebysupplier.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAwFH,gFAQC;AAED,oFAQC;AAxGD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,uFAK2C;AAgB3C,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,gCAAgC,EAAE,CAAC,CAAC,KAAK,CACvC,4EAA0C,CAC3C,CAAC,QAAQ,EAAE;CACb,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;Q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js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { Currency } from "./currency.js";
5
- import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js";
6
- export type PipelineStages = {
7
- /**
8
- * The name of the Pipeline Stage.
9
- */
10
- name?: string | null | undefined;
11
- /**
12
- * The value of the Pipeline Stage.
13
- */
14
- value?: string | null | undefined;
15
- /**
16
- * The expected probability of winning an Opportunity in this Pipeline Stage. Valid values are [0-100].
17
- */
18
- winProbability?: number | null | undefined;
19
- /**
20
- * The order in which the Pipeline Stage is displayed in the UI.
21
- */
22
- displayOrder?: number | null | undefined;
23
- };
24
- export type PipelineInput = {
25
- /**
26
- * The unique identifier of the Pipeline.
27
- */
28
- id?: string | undefined;
29
- /**
30
- * The name of the Pipeline.
31
- */
32
- name: string;
33
- /**
34
- * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
35
- */
36
- currency?: Currency | null | undefined;
37
- /**
38
- * Whether the Pipeline is archived or not.
39
- */
40
- archived?: boolean | undefined;
41
- /**
42
- * Whether the Pipeline is active or not.
43
- */
44
- active?: boolean | undefined;
45
- /**
46
- * The order in which the Pipeline is displayed in the UI.
47
- */
48
- displayOrder?: number | null | undefined;
49
- /**
50
- * Whether the Pipeline has win probability enabled or not.
51
- */
52
- winProbabilityEnabled?: boolean | undefined;
53
- /**
54
- * The Pipeline Stages.
55
- */
56
- stages?: Array<PipelineStages> | undefined;
57
- /**
58
- * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
59
- */
60
- passThrough?: Array<PassThroughBody> | undefined;
61
- };
62
- /** @internal */
63
- export declare const PipelineStages$inboundSchema: z.ZodType<PipelineStages, z.ZodTypeDef, unknown>;
64
- /** @internal */
65
- export type PipelineStages$Outbound = {
66
- name?: string | null | undefined;
67
- value?: string | null | undefined;
68
- win_probability?: number | null | undefined;
69
- display_order?: number | null | undefined;
70
- };
71
- /** @internal */
72
- export declare const PipelineStages$outboundSchema: z.ZodType<PipelineStages$Outbound, z.ZodTypeDef, PipelineStages>;
73
- /**
74
- * @internal
75
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
76
- */
77
- export declare namespace PipelineStages$ {
78
- /** @deprecated use `PipelineStages$inboundSchema` instead. */
79
- const inboundSchema: z.ZodType<PipelineStages, z.ZodTypeDef, unknown>;
80
- /** @deprecated use `PipelineStages$outboundSchema` instead. */
81
- const outboundSchema: z.ZodType<PipelineStages$Outbound, z.ZodTypeDef, PipelineStages>;
82
- /** @deprecated use `PipelineStages$Outbound` instead. */
83
- type Outbound = PipelineStages$Outbound;
84
- }
85
- export declare function pipelineStagesToJSON(pipelineStages: PipelineStages): string;
86
- export declare function pipelineStagesFromJSON(jsonString: string): SafeParseResult<PipelineStages, SDKValidationError>;
87
- /** @internal */
88
- export declare const PipelineInput$inboundSchema: z.ZodType<PipelineInput, z.ZodTypeDef, unknown>;
89
- /** @internal */
90
- export type PipelineInput$Outbound = {
91
- id?: string | undefined;
92
- name: string;
93
- currency?: string | null | undefined;
94
- archived?: boolean | undefined;
95
- active?: boolean | undefined;
96
- display_order?: number | null | undefined;
97
- win_probability_enabled?: boolean | undefined;
98
- stages?: Array<PipelineStages$Outbound> | undefined;
99
- pass_through?: Array<PassThroughBody$Outbound> | undefined;
100
- };
101
- /** @internal */
102
- export declare const PipelineInput$outboundSchema: z.ZodType<PipelineInput$Outbound, z.ZodTypeDef, PipelineInput>;
103
- /**
104
- * @internal
105
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
106
- */
107
- export declare namespace PipelineInput$ {
108
- /** @deprecated use `PipelineInput$inboundSchema` instead. */
109
- const inboundSchema: z.ZodType<PipelineInput, z.ZodTypeDef, unknown>;
110
- /** @deprecated use `PipelineInput$outboundSchema` instead. */
111
- const outboundSchema: z.ZodType<PipelineInput$Outbound, z.ZodTypeDef, PipelineInput>;
112
- /** @deprecated use `PipelineInput$Outbound` instead. */
113
- type Outbound = PipelineInput$Outbound;
114
- }
115
- export declare function pipelineInputToJSON(pipelineInput: PipelineInput): string;
116
- export declare function pipelineInputFromJSON(jsonString: string): SafeParseResult<PipelineInput, SDKValidationError>;
117
- //# sourceMappingURL=pipelineinput.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipelineinput.d.ts","sourceRoot":"","sources":["../../src/models/components/pipelineinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,QAAQ,EAGT,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,YAAY,CAAC,EAA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AAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAiBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9C,MAAM,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC;IACpD,YAAY,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAiBb,CAAC;AAEH;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
@@ -1,133 +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.PipelineInput$ = exports.PipelineInput$outboundSchema = exports.PipelineInput$inboundSchema = exports.PipelineStages$ = exports.PipelineStages$outboundSchema = exports.PipelineStages$inboundSchema = void 0;
30
- exports.pipelineStagesToJSON = pipelineStagesToJSON;
31
- exports.pipelineStagesFromJSON = pipelineStagesFromJSON;
32
- exports.pipelineInputToJSON = pipelineInputToJSON;
33
- exports.pipelineInputFromJSON = pipelineInputFromJSON;
34
- const z = __importStar(require("zod"));
35
- const primitives_js_1 = require("../../lib/primitives.js");
36
- const schemas_js_1 = require("../../lib/schemas.js");
37
- const currency_js_1 = require("./currency.js");
38
- const passthroughbody_js_1 = require("./passthroughbody.js");
39
- /** @internal */
40
- exports.PipelineStages$inboundSchema = z.object({
41
- name: z.nullable(z.string()).optional(),
42
- value: z.nullable(z.string()).optional(),
43
- win_probability: z.nullable(z.number().int()).optional(),
44
- display_order: z.nullable(z.number().int()).optional(),
45
- }).transform((v) => {
46
- return (0, primitives_js_1.remap)(v, {
47
- "win_probability": "winProbability",
48
- "display_order": "displayOrder",
49
- });
50
- });
51
- /** @internal */
52
- exports.PipelineStages$outboundSchema = z.object({
53
- name: z.nullable(z.string()).optional(),
54
- value: z.nullable(z.string()).optional(),
55
- winProbability: z.nullable(z.number().int()).optional(),
56
- displayOrder: z.nullable(z.number().int()).optional(),
57
- }).transform((v) => {
58
- return (0, primitives_js_1.remap)(v, {
59
- winProbability: "win_probability",
60
- displayOrder: "display_order",
61
- });
62
- });
63
- /**
64
- * @internal
65
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
- */
67
- var PipelineStages$;
68
- (function (PipelineStages$) {
69
- /** @deprecated use `PipelineStages$inboundSchema` instead. */
70
- PipelineStages$.inboundSchema = exports.PipelineStages$inboundSchema;
71
- /** @deprecated use `PipelineStages$outboundSchema` instead. */
72
- PipelineStages$.outboundSchema = exports.PipelineStages$outboundSchema;
73
- })(PipelineStages$ || (exports.PipelineStages$ = PipelineStages$ = {}));
74
- function pipelineStagesToJSON(pipelineStages) {
75
- return JSON.stringify(exports.PipelineStages$outboundSchema.parse(pipelineStages));
76
- }
77
- function pipelineStagesFromJSON(jsonString) {
78
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PipelineStages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PipelineStages' from JSON`);
79
- }
80
- /** @internal */
81
- exports.PipelineInput$inboundSchema = z.object({
82
- id: z.string().optional(),
83
- name: z.string(),
84
- currency: z.nullable(currency_js_1.Currency$inboundSchema).optional(),
85
- archived: z.boolean().optional(),
86
- active: z.boolean().optional(),
87
- display_order: z.nullable(z.number().int()).optional(),
88
- win_probability_enabled: z.boolean().optional(),
89
- stages: z.array(z.lazy(() => exports.PipelineStages$inboundSchema)).optional(),
90
- pass_through: z.array(passthroughbody_js_1.PassThroughBody$inboundSchema).optional(),
91
- }).transform((v) => {
92
- return (0, primitives_js_1.remap)(v, {
93
- "display_order": "displayOrder",
94
- "win_probability_enabled": "winProbabilityEnabled",
95
- "pass_through": "passThrough",
96
- });
97
- });
98
- /** @internal */
99
- exports.PipelineInput$outboundSchema = z.object({
100
- id: z.string().optional(),
101
- name: z.string(),
102
- currency: z.nullable(currency_js_1.Currency$outboundSchema).optional(),
103
- archived: z.boolean().optional(),
104
- active: z.boolean().optional(),
105
- displayOrder: z.nullable(z.number().int()).optional(),
106
- winProbabilityEnabled: z.boolean().optional(),
107
- stages: z.array(z.lazy(() => exports.PipelineStages$outboundSchema)).optional(),
108
- passThrough: z.array(passthroughbody_js_1.PassThroughBody$outboundSchema).optional(),
109
- }).transform((v) => {
110
- return (0, primitives_js_1.remap)(v, {
111
- displayOrder: "display_order",
112
- winProbabilityEnabled: "win_probability_enabled",
113
- passThrough: "pass_through",
114
- });
115
- });
116
- /**
117
- * @internal
118
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
119
- */
120
- var PipelineInput$;
121
- (function (PipelineInput$) {
122
- /** @deprecated use `PipelineInput$inboundSchema` instead. */
123
- PipelineInput$.inboundSchema = exports.PipelineInput$inboundSchema;
124
- /** @deprecated use `PipelineInput$outboundSchema` instead. */
125
- PipelineInput$.outboundSchema = exports.PipelineInput$outboundSchema;
126
- })(PipelineInput$ || (exports.PipelineInput$ = PipelineInput$ = {}));
127
- function pipelineInputToJSON(pipelineInput) {
128
- return JSON.stringify(exports.PipelineInput$outboundSchema.parse(pipelineInput));
129
- }
130
- function pipelineInputFromJSON(jsonString) {
131
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PipelineInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PipelineInput' from JSON`);
132
- }
133
- //# sourceMappingURL=pipelineinput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipelineinput.js","sourceRoot":"","sources":["../../src/models/components/pipelineinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAoIH,oDAEC;AAED,wDAQC;AA0ED,kDAEC;AAED,sDAQC;AApOD,uC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