@apideck/unify 0.13.2 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -13
- package/docs/sdks/pipelines/README.md +0 -542
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- 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 +2 -2
- 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,119 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
Pipeline,
|
|
12
|
-
Pipeline$inboundSchema,
|
|
13
|
-
Pipeline$Outbound,
|
|
14
|
-
Pipeline$outboundSchema,
|
|
15
|
-
} from "./pipeline.js";
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Pipeline
|
|
19
|
-
*/
|
|
20
|
-
export type GetPipelineResponse = {
|
|
21
|
-
/**
|
|
22
|
-
* HTTP Response Status Code
|
|
23
|
-
*/
|
|
24
|
-
statusCode: number;
|
|
25
|
-
/**
|
|
26
|
-
* HTTP Response Status
|
|
27
|
-
*/
|
|
28
|
-
status: string;
|
|
29
|
-
/**
|
|
30
|
-
* Apideck ID of service provider
|
|
31
|
-
*/
|
|
32
|
-
service: string;
|
|
33
|
-
/**
|
|
34
|
-
* Unified API resource name
|
|
35
|
-
*/
|
|
36
|
-
resource: string;
|
|
37
|
-
/**
|
|
38
|
-
* Operation performed
|
|
39
|
-
*/
|
|
40
|
-
operation: string;
|
|
41
|
-
data: Pipeline;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const GetPipelineResponse$inboundSchema: z.ZodType<
|
|
46
|
-
GetPipelineResponse,
|
|
47
|
-
z.ZodTypeDef,
|
|
48
|
-
unknown
|
|
49
|
-
> = z.object({
|
|
50
|
-
status_code: z.number().int(),
|
|
51
|
-
status: z.string(),
|
|
52
|
-
service: z.string(),
|
|
53
|
-
resource: z.string(),
|
|
54
|
-
operation: z.string(),
|
|
55
|
-
data: Pipeline$inboundSchema,
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return remap$(v, {
|
|
58
|
-
"status_code": "statusCode",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type GetPipelineResponse$Outbound = {
|
|
64
|
-
status_code: number;
|
|
65
|
-
status: string;
|
|
66
|
-
service: string;
|
|
67
|
-
resource: string;
|
|
68
|
-
operation: string;
|
|
69
|
-
data: Pipeline$Outbound;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
/** @internal */
|
|
73
|
-
export const GetPipelineResponse$outboundSchema: z.ZodType<
|
|
74
|
-
GetPipelineResponse$Outbound,
|
|
75
|
-
z.ZodTypeDef,
|
|
76
|
-
GetPipelineResponse
|
|
77
|
-
> = z.object({
|
|
78
|
-
statusCode: z.number().int(),
|
|
79
|
-
status: z.string(),
|
|
80
|
-
service: z.string(),
|
|
81
|
-
resource: z.string(),
|
|
82
|
-
operation: z.string(),
|
|
83
|
-
data: Pipeline$outboundSchema,
|
|
84
|
-
}).transform((v) => {
|
|
85
|
-
return remap$(v, {
|
|
86
|
-
statusCode: "status_code",
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
-
*/
|
|
94
|
-
export namespace GetPipelineResponse$ {
|
|
95
|
-
/** @deprecated use `GetPipelineResponse$inboundSchema` instead. */
|
|
96
|
-
export const inboundSchema = GetPipelineResponse$inboundSchema;
|
|
97
|
-
/** @deprecated use `GetPipelineResponse$outboundSchema` instead. */
|
|
98
|
-
export const outboundSchema = GetPipelineResponse$outboundSchema;
|
|
99
|
-
/** @deprecated use `GetPipelineResponse$Outbound` instead. */
|
|
100
|
-
export type Outbound = GetPipelineResponse$Outbound;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function getPipelineResponseToJSON(
|
|
104
|
-
getPipelineResponse: GetPipelineResponse,
|
|
105
|
-
): string {
|
|
106
|
-
return JSON.stringify(
|
|
107
|
-
GetPipelineResponse$outboundSchema.parse(getPipelineResponse),
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function getPipelineResponseFromJSON(
|
|
112
|
-
jsonString: string,
|
|
113
|
-
): SafeParseResult<GetPipelineResponse, SDKValidationError> {
|
|
114
|
-
return safeParse(
|
|
115
|
-
jsonString,
|
|
116
|
-
(x) => GetPipelineResponse$inboundSchema.parse(JSON.parse(x)),
|
|
117
|
-
`Failed to parse 'GetPipelineResponse' from JSON`,
|
|
118
|
-
);
|
|
119
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
OutstandingBalanceByCurrency,
|
|
12
|
-
OutstandingBalanceByCurrency$inboundSchema,
|
|
13
|
-
OutstandingBalanceByCurrency$Outbound,
|
|
14
|
-
OutstandingBalanceByCurrency$outboundSchema,
|
|
15
|
-
} from "./outstandingbalancebycurrency.js";
|
|
16
|
-
|
|
17
|
-
export type OutstandingBalanceBySupplier = {
|
|
18
|
-
/**
|
|
19
|
-
* Unique identifier for the supplier.
|
|
20
|
-
*/
|
|
21
|
-
supplierId?: string | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Full name of the supplier.
|
|
24
|
-
*/
|
|
25
|
-
supplierName?: string | undefined;
|
|
26
|
-
outstandingBalancesByCurrency?:
|
|
27
|
-
| Array<OutstandingBalanceByCurrency>
|
|
28
|
-
| undefined;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export const OutstandingBalanceBySupplier$inboundSchema: z.ZodType<
|
|
33
|
-
OutstandingBalanceBySupplier,
|
|
34
|
-
z.ZodTypeDef,
|
|
35
|
-
unknown
|
|
36
|
-
> = z.object({
|
|
37
|
-
supplier_id: z.string().optional(),
|
|
38
|
-
supplier_name: z.string().optional(),
|
|
39
|
-
outstanding_balances_by_currency: z.array(
|
|
40
|
-
OutstandingBalanceByCurrency$inboundSchema,
|
|
41
|
-
).optional(),
|
|
42
|
-
}).transform((v) => {
|
|
43
|
-
return remap$(v, {
|
|
44
|
-
"supplier_id": "supplierId",
|
|
45
|
-
"supplier_name": "supplierName",
|
|
46
|
-
"outstanding_balances_by_currency": "outstandingBalancesByCurrency",
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export type OutstandingBalanceBySupplier$Outbound = {
|
|
52
|
-
supplier_id?: string | undefined;
|
|
53
|
-
supplier_name?: string | undefined;
|
|
54
|
-
outstanding_balances_by_currency?:
|
|
55
|
-
| Array<OutstandingBalanceByCurrency$Outbound>
|
|
56
|
-
| undefined;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
/** @internal */
|
|
60
|
-
export const OutstandingBalanceBySupplier$outboundSchema: z.ZodType<
|
|
61
|
-
OutstandingBalanceBySupplier$Outbound,
|
|
62
|
-
z.ZodTypeDef,
|
|
63
|
-
OutstandingBalanceBySupplier
|
|
64
|
-
> = z.object({
|
|
65
|
-
supplierId: z.string().optional(),
|
|
66
|
-
supplierName: z.string().optional(),
|
|
67
|
-
outstandingBalancesByCurrency: z.array(
|
|
68
|
-
OutstandingBalanceByCurrency$outboundSchema,
|
|
69
|
-
).optional(),
|
|
70
|
-
}).transform((v) => {
|
|
71
|
-
return remap$(v, {
|
|
72
|
-
supplierId: "supplier_id",
|
|
73
|
-
supplierName: "supplier_name",
|
|
74
|
-
outstandingBalancesByCurrency: "outstanding_balances_by_currency",
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
-
*/
|
|
82
|
-
export namespace OutstandingBalanceBySupplier$ {
|
|
83
|
-
/** @deprecated use `OutstandingBalanceBySupplier$inboundSchema` instead. */
|
|
84
|
-
export const inboundSchema = OutstandingBalanceBySupplier$inboundSchema;
|
|
85
|
-
/** @deprecated use `OutstandingBalanceBySupplier$outboundSchema` instead. */
|
|
86
|
-
export const outboundSchema = OutstandingBalanceBySupplier$outboundSchema;
|
|
87
|
-
/** @deprecated use `OutstandingBalanceBySupplier$Outbound` instead. */
|
|
88
|
-
export type Outbound = OutstandingBalanceBySupplier$Outbound;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function outstandingBalanceBySupplierToJSON(
|
|
92
|
-
outstandingBalanceBySupplier: OutstandingBalanceBySupplier,
|
|
93
|
-
): string {
|
|
94
|
-
return JSON.stringify(
|
|
95
|
-
OutstandingBalanceBySupplier$outboundSchema.parse(
|
|
96
|
-
outstandingBalanceBySupplier,
|
|
97
|
-
),
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export function outstandingBalanceBySupplierFromJSON(
|
|
102
|
-
jsonString: string,
|
|
103
|
-
): SafeParseResult<OutstandingBalanceBySupplier, SDKValidationError> {
|
|
104
|
-
return safeParse(
|
|
105
|
-
jsonString,
|
|
106
|
-
(x) => OutstandingBalanceBySupplier$inboundSchema.parse(JSON.parse(x)),
|
|
107
|
-
`Failed to parse 'OutstandingBalanceBySupplier' from JSON`,
|
|
108
|
-
);
|
|
109
|
-
}
|
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
Currency,
|
|
12
|
-
Currency$inboundSchema,
|
|
13
|
-
Currency$outboundSchema,
|
|
14
|
-
} from "./currency.js";
|
|
15
|
-
import {
|
|
16
|
-
PassThroughBody,
|
|
17
|
-
PassThroughBody$inboundSchema,
|
|
18
|
-
PassThroughBody$Outbound,
|
|
19
|
-
PassThroughBody$outboundSchema,
|
|
20
|
-
} from "./passthroughbody.js";
|
|
21
|
-
|
|
22
|
-
export type PipelineStages = {
|
|
23
|
-
/**
|
|
24
|
-
* The name of the Pipeline Stage.
|
|
25
|
-
*/
|
|
26
|
-
name?: string | null | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* The value of the Pipeline Stage.
|
|
29
|
-
*/
|
|
30
|
-
value?: string | null | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* The expected probability of winning an Opportunity in this Pipeline Stage. Valid values are [0-100].
|
|
33
|
-
*/
|
|
34
|
-
winProbability?: number | null | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* The order in which the Pipeline Stage is displayed in the UI.
|
|
37
|
-
*/
|
|
38
|
-
displayOrder?: number | null | undefined;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export type PipelineInput = {
|
|
42
|
-
/**
|
|
43
|
-
* The unique identifier of the Pipeline.
|
|
44
|
-
*/
|
|
45
|
-
id?: string | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* The name of the Pipeline.
|
|
48
|
-
*/
|
|
49
|
-
name: string;
|
|
50
|
-
/**
|
|
51
|
-
* Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
|
|
52
|
-
*/
|
|
53
|
-
currency?: Currency | null | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Whether the Pipeline is archived or not.
|
|
56
|
-
*/
|
|
57
|
-
archived?: boolean | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* Whether the Pipeline is active or not.
|
|
60
|
-
*/
|
|
61
|
-
active?: boolean | undefined;
|
|
62
|
-
/**
|
|
63
|
-
* The order in which the Pipeline is displayed in the UI.
|
|
64
|
-
*/
|
|
65
|
-
displayOrder?: number | null | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* Whether the Pipeline has win probability enabled or not.
|
|
68
|
-
*/
|
|
69
|
-
winProbabilityEnabled?: boolean | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* The Pipeline Stages.
|
|
72
|
-
*/
|
|
73
|
-
stages?: Array<PipelineStages> | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
76
|
-
*/
|
|
77
|
-
passThrough?: Array<PassThroughBody> | undefined;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
/** @internal */
|
|
81
|
-
export const PipelineStages$inboundSchema: z.ZodType<
|
|
82
|
-
PipelineStages,
|
|
83
|
-
z.ZodTypeDef,
|
|
84
|
-
unknown
|
|
85
|
-
> = z.object({
|
|
86
|
-
name: z.nullable(z.string()).optional(),
|
|
87
|
-
value: z.nullable(z.string()).optional(),
|
|
88
|
-
win_probability: z.nullable(z.number().int()).optional(),
|
|
89
|
-
display_order: z.nullable(z.number().int()).optional(),
|
|
90
|
-
}).transform((v) => {
|
|
91
|
-
return remap$(v, {
|
|
92
|
-
"win_probability": "winProbability",
|
|
93
|
-
"display_order": "displayOrder",
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
/** @internal */
|
|
98
|
-
export type PipelineStages$Outbound = {
|
|
99
|
-
name?: string | null | undefined;
|
|
100
|
-
value?: string | null | undefined;
|
|
101
|
-
win_probability?: number | null | undefined;
|
|
102
|
-
display_order?: number | null | undefined;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
/** @internal */
|
|
106
|
-
export const PipelineStages$outboundSchema: z.ZodType<
|
|
107
|
-
PipelineStages$Outbound,
|
|
108
|
-
z.ZodTypeDef,
|
|
109
|
-
PipelineStages
|
|
110
|
-
> = z.object({
|
|
111
|
-
name: z.nullable(z.string()).optional(),
|
|
112
|
-
value: z.nullable(z.string()).optional(),
|
|
113
|
-
winProbability: z.nullable(z.number().int()).optional(),
|
|
114
|
-
displayOrder: z.nullable(z.number().int()).optional(),
|
|
115
|
-
}).transform((v) => {
|
|
116
|
-
return remap$(v, {
|
|
117
|
-
winProbability: "win_probability",
|
|
118
|
-
displayOrder: "display_order",
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* @internal
|
|
124
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
125
|
-
*/
|
|
126
|
-
export namespace PipelineStages$ {
|
|
127
|
-
/** @deprecated use `PipelineStages$inboundSchema` instead. */
|
|
128
|
-
export const inboundSchema = PipelineStages$inboundSchema;
|
|
129
|
-
/** @deprecated use `PipelineStages$outboundSchema` instead. */
|
|
130
|
-
export const outboundSchema = PipelineStages$outboundSchema;
|
|
131
|
-
/** @deprecated use `PipelineStages$Outbound` instead. */
|
|
132
|
-
export type Outbound = PipelineStages$Outbound;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export function pipelineStagesToJSON(pipelineStages: PipelineStages): string {
|
|
136
|
-
return JSON.stringify(PipelineStages$outboundSchema.parse(pipelineStages));
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export function pipelineStagesFromJSON(
|
|
140
|
-
jsonString: string,
|
|
141
|
-
): SafeParseResult<PipelineStages, SDKValidationError> {
|
|
142
|
-
return safeParse(
|
|
143
|
-
jsonString,
|
|
144
|
-
(x) => PipelineStages$inboundSchema.parse(JSON.parse(x)),
|
|
145
|
-
`Failed to parse 'PipelineStages' from JSON`,
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/** @internal */
|
|
150
|
-
export const PipelineInput$inboundSchema: z.ZodType<
|
|
151
|
-
PipelineInput,
|
|
152
|
-
z.ZodTypeDef,
|
|
153
|
-
unknown
|
|
154
|
-
> = z.object({
|
|
155
|
-
id: z.string().optional(),
|
|
156
|
-
name: z.string(),
|
|
157
|
-
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
158
|
-
archived: z.boolean().optional(),
|
|
159
|
-
active: z.boolean().optional(),
|
|
160
|
-
display_order: z.nullable(z.number().int()).optional(),
|
|
161
|
-
win_probability_enabled: z.boolean().optional(),
|
|
162
|
-
stages: z.array(z.lazy(() => PipelineStages$inboundSchema)).optional(),
|
|
163
|
-
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
164
|
-
}).transform((v) => {
|
|
165
|
-
return remap$(v, {
|
|
166
|
-
"display_order": "displayOrder",
|
|
167
|
-
"win_probability_enabled": "winProbabilityEnabled",
|
|
168
|
-
"pass_through": "passThrough",
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
/** @internal */
|
|
173
|
-
export type PipelineInput$Outbound = {
|
|
174
|
-
id?: string | undefined;
|
|
175
|
-
name: string;
|
|
176
|
-
currency?: string | null | undefined;
|
|
177
|
-
archived?: boolean | undefined;
|
|
178
|
-
active?: boolean | undefined;
|
|
179
|
-
display_order?: number | null | undefined;
|
|
180
|
-
win_probability_enabled?: boolean | undefined;
|
|
181
|
-
stages?: Array<PipelineStages$Outbound> | undefined;
|
|
182
|
-
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
/** @internal */
|
|
186
|
-
export const PipelineInput$outboundSchema: z.ZodType<
|
|
187
|
-
PipelineInput$Outbound,
|
|
188
|
-
z.ZodTypeDef,
|
|
189
|
-
PipelineInput
|
|
190
|
-
> = z.object({
|
|
191
|
-
id: z.string().optional(),
|
|
192
|
-
name: z.string(),
|
|
193
|
-
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
194
|
-
archived: z.boolean().optional(),
|
|
195
|
-
active: z.boolean().optional(),
|
|
196
|
-
displayOrder: z.nullable(z.number().int()).optional(),
|
|
197
|
-
winProbabilityEnabled: z.boolean().optional(),
|
|
198
|
-
stages: z.array(z.lazy(() => PipelineStages$outboundSchema)).optional(),
|
|
199
|
-
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
200
|
-
}).transform((v) => {
|
|
201
|
-
return remap$(v, {
|
|
202
|
-
displayOrder: "display_order",
|
|
203
|
-
winProbabilityEnabled: "win_probability_enabled",
|
|
204
|
-
passThrough: "pass_through",
|
|
205
|
-
});
|
|
206
|
-
});
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* @internal
|
|
210
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
211
|
-
*/
|
|
212
|
-
export namespace PipelineInput$ {
|
|
213
|
-
/** @deprecated use `PipelineInput$inboundSchema` instead. */
|
|
214
|
-
export const inboundSchema = PipelineInput$inboundSchema;
|
|
215
|
-
/** @deprecated use `PipelineInput$outboundSchema` instead. */
|
|
216
|
-
export const outboundSchema = PipelineInput$outboundSchema;
|
|
217
|
-
/** @deprecated use `PipelineInput$Outbound` instead. */
|
|
218
|
-
export type Outbound = PipelineInput$Outbound;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export function pipelineInputToJSON(pipelineInput: PipelineInput): string {
|
|
222
|
-
return JSON.stringify(PipelineInput$outboundSchema.parse(pipelineInput));
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export function pipelineInputFromJSON(
|
|
226
|
-
jsonString: string,
|
|
227
|
-
): SafeParseResult<PipelineInput, SDKValidationError> {
|
|
228
|
-
return safeParse(
|
|
229
|
-
jsonString,
|
|
230
|
-
(x) => PipelineInput$inboundSchema.parse(JSON.parse(x)),
|
|
231
|
-
`Failed to parse 'PipelineInput' from JSON`,
|
|
232
|
-
);
|
|
233
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
UnifiedId,
|
|
12
|
-
UnifiedId$inboundSchema,
|
|
13
|
-
UnifiedId$Outbound,
|
|
14
|
-
UnifiedId$outboundSchema,
|
|
15
|
-
} from "./unifiedid.js";
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Pipeline updated
|
|
19
|
-
*/
|
|
20
|
-
export type UpdatePipelineResponse = {
|
|
21
|
-
/**
|
|
22
|
-
* HTTP Response Status Code
|
|
23
|
-
*/
|
|
24
|
-
statusCode: number;
|
|
25
|
-
/**
|
|
26
|
-
* HTTP Response Status
|
|
27
|
-
*/
|
|
28
|
-
status: string;
|
|
29
|
-
/**
|
|
30
|
-
* Apideck ID of service provider
|
|
31
|
-
*/
|
|
32
|
-
service: string;
|
|
33
|
-
/**
|
|
34
|
-
* Unified API resource name
|
|
35
|
-
*/
|
|
36
|
-
resource: string;
|
|
37
|
-
/**
|
|
38
|
-
* Operation performed
|
|
39
|
-
*/
|
|
40
|
-
operation: string;
|
|
41
|
-
data: UnifiedId;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const UpdatePipelineResponse$inboundSchema: z.ZodType<
|
|
46
|
-
UpdatePipelineResponse,
|
|
47
|
-
z.ZodTypeDef,
|
|
48
|
-
unknown
|
|
49
|
-
> = z.object({
|
|
50
|
-
status_code: z.number().int(),
|
|
51
|
-
status: z.string(),
|
|
52
|
-
service: z.string(),
|
|
53
|
-
resource: z.string(),
|
|
54
|
-
operation: z.string(),
|
|
55
|
-
data: UnifiedId$inboundSchema,
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return remap$(v, {
|
|
58
|
-
"status_code": "statusCode",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type UpdatePipelineResponse$Outbound = {
|
|
64
|
-
status_code: number;
|
|
65
|
-
status: string;
|
|
66
|
-
service: string;
|
|
67
|
-
resource: string;
|
|
68
|
-
operation: string;
|
|
69
|
-
data: UnifiedId$Outbound;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
/** @internal */
|
|
73
|
-
export const UpdatePipelineResponse$outboundSchema: z.ZodType<
|
|
74
|
-
UpdatePipelineResponse$Outbound,
|
|
75
|
-
z.ZodTypeDef,
|
|
76
|
-
UpdatePipelineResponse
|
|
77
|
-
> = z.object({
|
|
78
|
-
statusCode: z.number().int(),
|
|
79
|
-
status: z.string(),
|
|
80
|
-
service: z.string(),
|
|
81
|
-
resource: z.string(),
|
|
82
|
-
operation: z.string(),
|
|
83
|
-
data: UnifiedId$outboundSchema,
|
|
84
|
-
}).transform((v) => {
|
|
85
|
-
return remap$(v, {
|
|
86
|
-
statusCode: "status_code",
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
-
*/
|
|
94
|
-
export namespace UpdatePipelineResponse$ {
|
|
95
|
-
/** @deprecated use `UpdatePipelineResponse$inboundSchema` instead. */
|
|
96
|
-
export const inboundSchema = UpdatePipelineResponse$inboundSchema;
|
|
97
|
-
/** @deprecated use `UpdatePipelineResponse$outboundSchema` instead. */
|
|
98
|
-
export const outboundSchema = UpdatePipelineResponse$outboundSchema;
|
|
99
|
-
/** @deprecated use `UpdatePipelineResponse$Outbound` instead. */
|
|
100
|
-
export type Outbound = UpdatePipelineResponse$Outbound;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function updatePipelineResponseToJSON(
|
|
104
|
-
updatePipelineResponse: UpdatePipelineResponse,
|
|
105
|
-
): string {
|
|
106
|
-
return JSON.stringify(
|
|
107
|
-
UpdatePipelineResponse$outboundSchema.parse(updatePipelineResponse),
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function updatePipelineResponseFromJSON(
|
|
112
|
-
jsonString: string,
|
|
113
|
-
): SafeParseResult<UpdatePipelineResponse, SDKValidationError> {
|
|
114
|
-
return safeParse(
|
|
115
|
-
jsonString,
|
|
116
|
-
(x) => UpdatePipelineResponse$inboundSchema.parse(JSON.parse(x)),
|
|
117
|
-
`Failed to parse 'UpdatePipelineResponse' from JSON`,
|
|
118
|
-
);
|
|
119
|
-
}
|