@epilot/sdk 2.0.0-beta.3 → 2.0.0-beta.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/definitions/access-token-runtime.json +1 -0
- package/definitions/access-token.json +663 -0
- package/definitions/address-runtime.json +1 -0
- package/definitions/address-suggestions-runtime.json +1 -0
- package/definitions/address-suggestions.json +582 -0
- package/definitions/address.json +578 -0
- package/definitions/ai-agents-runtime.json +1 -0
- package/definitions/ai-agents.json +1711 -0
- package/definitions/app-runtime.json +1 -0
- package/definitions/app.json +4443 -0
- package/definitions/audit-logs-runtime.json +1 -0
- package/definitions/audit-logs.json +305 -0
- package/definitions/automation-runtime.json +1 -0
- package/definitions/automation.json +4850 -0
- package/definitions/billing-runtime.json +1 -0
- package/definitions/billing.json +837 -0
- package/definitions/blueprint-manifest-runtime.json +1 -0
- package/definitions/blueprint-manifest.json +3376 -0
- package/definitions/consent-runtime.json +1 -0
- package/definitions/consent.json +344 -0
- package/definitions/customer-portal-runtime.json +1 -0
- package/definitions/customer-portal.json +15000 -0
- package/definitions/dashboard-runtime.json +1 -0
- package/definitions/dashboard.json +484 -0
- package/definitions/data-management-runtime.json +1 -0
- package/definitions/data-management.json +962 -0
- package/definitions/deduplication-runtime.json +1 -0
- package/definitions/deduplication.json +183 -0
- package/definitions/design-runtime.json +1 -0
- package/definitions/design.json +1423 -0
- package/definitions/document-runtime.json +1 -0
- package/definitions/document.json +758 -0
- package/definitions/email-settings-runtime.json +1 -0
- package/definitions/email-settings.json +2627 -0
- package/definitions/email-template-runtime.json +1 -0
- package/definitions/email-template.json +1419 -0
- package/definitions/entity-mapping-runtime.json +1 -0
- package/definitions/entity-mapping.json +1642 -0
- package/definitions/entity-runtime.json +1 -0
- package/definitions/entity.json +10074 -0
- package/definitions/environments-runtime.json +1 -0
- package/definitions/environments.json +363 -0
- package/definitions/erp-integration-runtime.json +1 -0
- package/definitions/erp-integration.json +5845 -0
- package/definitions/event-catalog-runtime.json +1 -0
- package/definitions/event-catalog.json +1051 -0
- package/definitions/file-runtime.json +1 -0
- package/definitions/file.json +2842 -0
- package/definitions/iban-runtime.json +1 -0
- package/definitions/iban.json +132 -0
- package/definitions/journey-runtime.json +1 -0
- package/definitions/journey.json +2341 -0
- package/definitions/kanban-runtime.json +1 -0
- package/definitions/kanban.json +929 -0
- package/definitions/message-runtime.json +1 -0
- package/definitions/message.json +2660 -0
- package/definitions/metering-runtime.json +1 -0
- package/definitions/metering.json +2321 -0
- package/definitions/notes-runtime.json +1 -0
- package/definitions/notes.json +1531 -0
- package/definitions/notification-runtime.json +1 -0
- package/definitions/notification.json +1425 -0
- package/definitions/organization-runtime.json +1 -0
- package/definitions/organization.json +629 -0
- package/definitions/partner-directory-runtime.json +1 -0
- package/definitions/partner-directory.json +1718 -0
- package/definitions/permissions-runtime.json +1 -0
- package/definitions/permissions.json +1480 -0
- package/definitions/pricing-runtime.json +1 -0
- package/definitions/pricing-tier-runtime.json +1 -0
- package/definitions/pricing-tier.json +105 -0
- package/definitions/pricing.json +9884 -0
- package/definitions/purpose-runtime.json +1 -0
- package/definitions/purpose.json +524 -0
- package/definitions/sandbox-runtime.json +1 -0
- package/definitions/sandbox.json +453 -0
- package/definitions/submission-runtime.json +1 -0
- package/definitions/submission.json +313 -0
- package/definitions/targeting-runtime.json +1 -0
- package/definitions/targeting.json +1474 -0
- package/definitions/template-variables-runtime.json +1 -0
- package/definitions/template-variables.json +1408 -0
- package/definitions/user-runtime.json +1 -0
- package/definitions/user.json +2408 -0
- package/definitions/validation-rules-runtime.json +1 -0
- package/definitions/validation-rules.json +1491 -0
- package/definitions/webhooks-runtime.json +1 -0
- package/definitions/webhooks.json +1525 -0
- package/definitions/workflow-definition-runtime.json +1 -0
- package/definitions/workflow-definition.json +3417 -0
- package/definitions/workflow-runtime.json +1 -0
- package/definitions/workflow.json +4106 -0
- package/dist/apis/access-token.cjs +13 -84
- package/dist/apis/access-token.js +11 -82
- package/dist/apis/address-suggestions.cjs +13 -127
- package/dist/apis/address-suggestions.js +11 -125
- package/dist/apis/address.cjs +13 -79
- package/dist/apis/address.js +11 -77
- package/dist/apis/ai-agents.cjs +13 -210
- package/dist/apis/ai-agents.js +11 -208
- package/dist/apis/app.cjs +13 -568
- package/dist/apis/app.js +11 -566
- package/dist/apis/audit-logs.cjs +13 -50
- package/dist/apis/audit-logs.js +11 -48
- package/dist/apis/automation.cjs +13 -277
- package/dist/apis/automation.js +11 -275
- package/dist/apis/billing.cjs +13 -170
- package/dist/apis/billing.js +11 -168
- package/dist/apis/blueprint-manifest.cjs +13 -499
- package/dist/apis/blueprint-manifest.js +11 -497
- package/dist/apis/consent.cjs +13 -79
- package/dist/apis/consent.js +11 -77
- package/dist/apis/customer-portal.cjs +13 -2247
- package/dist/apis/customer-portal.js +11 -2245
- package/dist/apis/dashboard.cjs +13 -79
- package/dist/apis/dashboard.js +11 -77
- package/dist/apis/data-management.cjs +13 -235
- package/dist/apis/data-management.js +11 -233
- package/dist/apis/deduplication.cjs +13 -37
- package/dist/apis/deduplication.js +11 -35
- package/dist/apis/design.cjs +13 -214
- package/dist/apis/design.js +11 -212
- package/dist/apis/document.cjs +13 -73
- package/dist/apis/document.js +11 -71
- package/dist/apis/email-settings.cjs +13 -528
- package/dist/apis/email-settings.js +11 -526
- package/dist/apis/email-template.cjs +13 -117
- package/dist/apis/email-template.js +11 -115
- package/dist/apis/entity-mapping.cjs +13 -210
- package/dist/apis/entity-mapping.js +11 -208
- package/dist/apis/entity.cjs +13 -1595
- package/dist/apis/entity.js +11 -1593
- package/dist/apis/environments.cjs +13 -66
- package/dist/apis/environments.js +11 -64
- package/dist/apis/erp-integration.cjs +13 -581
- package/dist/apis/erp-integration.js +11 -579
- package/dist/apis/event-catalog.cjs +13 -125
- package/dist/apis/event-catalog.js +11 -123
- package/dist/apis/file.cjs +13 -568
- package/dist/apis/file.js +11 -566
- package/dist/apis/iban.cjs +13 -38
- package/dist/apis/iban.js +11 -36
- package/dist/apis/journey.cjs +13 -265
- package/dist/apis/journey.js +11 -263
- package/dist/apis/kanban.cjs +13 -159
- package/dist/apis/kanban.js +11 -157
- package/dist/apis/message.cjs +13 -668
- package/dist/apis/message.js +11 -666
- package/dist/apis/metering.cjs +13 -394
- package/dist/apis/metering.js +11 -392
- package/dist/apis/notes.cjs +13 -214
- package/dist/apis/notes.js +11 -212
- package/dist/apis/notification.cjs +13 -232
- package/dist/apis/notification.js +11 -230
- package/dist/apis/organization.cjs +13 -113
- package/dist/apis/organization.js +11 -111
- package/dist/apis/partner-directory.cjs +13 -277
- package/dist/apis/partner-directory.js +11 -275
- package/dist/apis/permissions.cjs +13 -173
- package/dist/apis/permissions.js +11 -171
- package/dist/apis/pricing-tier.cjs +14 -32
- package/dist/apis/pricing-tier.js +11 -29
- package/dist/apis/pricing.cjs +13 -434
- package/dist/apis/pricing.js +11 -432
- package/dist/apis/purpose.cjs +13 -175
- package/dist/apis/purpose.js +11 -173
- package/dist/apis/sandbox.cjs +13 -95
- package/dist/apis/sandbox.js +11 -93
- package/dist/apis/submission.cjs +13 -50
- package/dist/apis/submission.js +11 -48
- package/dist/apis/targeting.cjs +13 -270
- package/dist/apis/targeting.js +11 -268
- package/dist/apis/template-variables.cjs +13 -154
- package/dist/apis/template-variables.js +11 -152
- package/dist/apis/user.cjs +13 -483
- package/dist/apis/user.js +11 -481
- package/dist/apis/validation-rules.cjs +13 -115
- package/dist/apis/validation-rules.js +11 -113
- package/dist/apis/webhooks.cjs +13 -247
- package/dist/apis/webhooks.js +11 -245
- package/dist/apis/workflow-definition.cjs +13 -337
- package/dist/apis/workflow-definition.js +11 -335
- package/dist/apis/workflow.cjs +13 -397
- package/dist/apis/workflow.js +11 -395
- package/dist/{chunk-D7ICL3AM.cjs → chunk-5LXNSDG2.cjs} +51 -2
- package/dist/{chunk-DGCGLG7G.js → chunk-QMQNMCOC.js} +49 -0
- package/dist/index.cjs +56 -54
- package/dist/index.js +53 -51
- package/package.json +50 -3
package/dist/apis/targeting.cjs
CHANGED
|
@@ -3,289 +3,32 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var _chunkD7ICL3AMcjs = require('../chunk-D7ICL3AM.cjs');
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
title: "",
|
|
15
|
-
version: ""
|
|
16
|
-
},
|
|
17
|
-
servers: [
|
|
18
|
-
{
|
|
19
|
-
url: "https://targeting.sls.epilot.io"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
paths: {
|
|
23
|
-
"/v1/campaign/{campaign_id}/status": {
|
|
24
|
-
post: {
|
|
25
|
-
operationId: "changeCampaignStatus",
|
|
26
|
-
parameters: [
|
|
27
|
-
{
|
|
28
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
responses: {}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"/v1/campaign/{campaign_id}/job": {
|
|
35
|
-
get: {
|
|
36
|
-
operationId: "getCampaignJobStatus",
|
|
37
|
-
parameters: [
|
|
38
|
-
{
|
|
39
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
responses: {}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"/v1/campaign/{campaign_id}/portals": {
|
|
46
|
-
get: {
|
|
47
|
-
operationId: "getCampaignPortals",
|
|
48
|
-
parameters: [
|
|
49
|
-
{
|
|
50
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
responses: {}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"/v1/campaign/{campaign_id}/automations:retrigger": {
|
|
57
|
-
post: {
|
|
58
|
-
operationId: "retriggerCampaignAutomations",
|
|
59
|
-
parameters: [
|
|
60
|
-
{
|
|
61
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
requestBody: {
|
|
65
|
-
required: true,
|
|
66
|
-
content: {
|
|
67
|
-
"application/json": {}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
responses: {}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"/v1/campaign:match": {
|
|
74
|
-
post: {
|
|
75
|
-
operationId: "matchCampaigns",
|
|
76
|
-
requestBody: {
|
|
77
|
-
required: true,
|
|
78
|
-
content: {
|
|
79
|
-
"application/json": {}
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
responses: {}
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"/v1/target:match": {
|
|
86
|
-
post: {
|
|
87
|
-
operationId: "matchTargets",
|
|
88
|
-
requestBody: {
|
|
89
|
-
required: true,
|
|
90
|
-
content: {
|
|
91
|
-
"application/json": {}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
responses: {}
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"/v1/target/queries": {
|
|
98
|
-
post: {
|
|
99
|
-
operationId: "getTargetQueries",
|
|
100
|
-
requestBody: {
|
|
101
|
-
required: true,
|
|
102
|
-
content: {
|
|
103
|
-
"application/json": {}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
responses: {}
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"/v1/campaign/{campaign_id}/recipient": {
|
|
110
|
-
post: {
|
|
111
|
-
operationId: "createRecipient",
|
|
112
|
-
parameters: [
|
|
113
|
-
{
|
|
114
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
requestBody: {
|
|
118
|
-
required: true,
|
|
119
|
-
content: {
|
|
120
|
-
"application/json": {}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
responses: {}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"/v1/campaign/{campaign_id}/recipient/{recipient_id}": {
|
|
127
|
-
patch: {
|
|
128
|
-
operationId: "updateRecipient",
|
|
129
|
-
parameters: [
|
|
130
|
-
{
|
|
131
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
$ref: "#/components/parameters/RecipientIdPathParam"
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
requestBody: {
|
|
138
|
-
required: true,
|
|
139
|
-
content: {
|
|
140
|
-
"application/json": {}
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
responses: {}
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
"/v1/campaign/{campaign_id}/recipient/{recipient_id}/portal:status": {
|
|
147
|
-
patch: {
|
|
148
|
-
operationId: "updateRecipientPortalStatus",
|
|
149
|
-
parameters: [
|
|
150
|
-
{
|
|
151
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
$ref: "#/components/parameters/RecipientIdPathParam"
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
requestBody: {
|
|
158
|
-
required: true,
|
|
159
|
-
content: {
|
|
160
|
-
"application/json": {}
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
responses: {}
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
"/v1/campaign/{campaign_id}/recipients": {
|
|
167
|
-
get: {
|
|
168
|
-
operationId: "getRecipients",
|
|
169
|
-
parameters: [
|
|
170
|
-
{
|
|
171
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
name: "limit",
|
|
175
|
-
in: "query"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
name: "next",
|
|
179
|
-
in: "query"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: "q",
|
|
183
|
-
in: "query"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
name: "automation_status",
|
|
187
|
-
in: "query"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
name: "portal_status",
|
|
191
|
-
in: "query"
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
responses: {}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
components: {
|
|
199
|
-
parameters: {
|
|
200
|
-
CampaignIdPathParam: {
|
|
201
|
-
name: "campaign_id",
|
|
202
|
-
in: "path",
|
|
203
|
-
required: true
|
|
204
|
-
},
|
|
205
|
-
RecipientIdPathParam: {
|
|
206
|
-
name: "recipient_id",
|
|
207
|
-
in: "path",
|
|
208
|
-
required: true
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
responses: {
|
|
212
|
-
ClientErrorResponse: {
|
|
213
|
-
content: {
|
|
214
|
-
"application/json": {}
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
ServerErrorResponse: {
|
|
218
|
-
content: {
|
|
219
|
-
"application/json": {}
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
CampaignResponse: {
|
|
223
|
-
content: {
|
|
224
|
-
"application/json": {}
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
JobStatusResponse: {
|
|
228
|
-
content: {
|
|
229
|
-
"application/json": {}
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
RecipientResponse: {
|
|
233
|
-
content: {
|
|
234
|
-
"application/json": {}
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
RecipientsResponse: {
|
|
238
|
-
content: {
|
|
239
|
-
"application/json": {}
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
MatchCampaignsResponse: {
|
|
243
|
-
content: {
|
|
244
|
-
"application/json": {}
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
MatchTargetsResponse: {
|
|
248
|
-
content: {
|
|
249
|
-
"application/json": {}
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
GetTargetQueriesResponse: {
|
|
253
|
-
content: {
|
|
254
|
-
"application/json": {}
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
CampaignPortalsResponse: {
|
|
258
|
-
content: {
|
|
259
|
-
"application/json": {}
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
RetriggerAutomationsResponse: {
|
|
263
|
-
content: {
|
|
264
|
-
"application/json": {}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
};
|
|
7
|
+
var _chunk5LXNSDG2cjs = require('../chunk-5LXNSDG2.cjs');
|
|
8
|
+
|
|
9
|
+
// src/definitions/targeting-runtime.json
|
|
10
|
+
var require_targeting_runtime = _chunk5LXNSDG2cjs.__commonJS.call(void 0, {
|
|
11
|
+
"src/definitions/targeting-runtime.json"(exports, module) {
|
|
12
|
+
module.exports = { s: "https://targeting.sls.epilot.io", o: [["changeCampaignStatus", "post", "/v1/campaign/{campaign_id}/status", [["CampaignIdPathParam"]]], ["getCampaignJobStatus", "get", "/v1/campaign/{campaign_id}/job", [["CampaignIdPathParam"]]], ["getCampaignPortals", "get", "/v1/campaign/{campaign_id}/portals", [["CampaignIdPathParam"]]], ["retriggerCampaignAutomations", "post", "/v1/campaign/{campaign_id}/automations:retrigger", [["CampaignIdPathParam"]], 1], ["matchCampaigns", "post", "/v1/campaign:match", null, 1], ["matchTargets", "post", "/v1/target:match", null, 1], ["getTargetQueries", "post", "/v1/target/queries", null, 1], ["createRecipient", "post", "/v1/campaign/{campaign_id}/recipient", [["CampaignIdPathParam"]], 1], ["updateRecipient", "patch", "/v1/campaign/{campaign_id}/recipient/{recipient_id}", [["CampaignIdPathParam"], ["RecipientIdPathParam"]], 1], ["updateRecipientPortalStatus", "patch", "/v1/campaign/{campaign_id}/recipient/{recipient_id}/portal:status", [["CampaignIdPathParam"], ["RecipientIdPathParam"]], 1], ["getRecipients", "get", "/v1/campaign/{campaign_id}/recipients", [["CampaignIdPathParam"], ["limit", "q"], ["next", "q"], ["q", "q"], ["automation_status", "q"], ["portal_status", "q"]]]], v: "3.0.3", cp: { CampaignIdPathParam: ["campaign_id", "p", true], RecipientIdPathParam: ["recipient_id", "p", true] } };
|
|
270
13
|
}
|
|
271
14
|
});
|
|
272
15
|
|
|
273
16
|
// src/apis/targeting.ts
|
|
274
17
|
var loadDefinition = () => {
|
|
275
|
-
const mod =
|
|
276
|
-
return _nullishCoalesce(mod.default, () => ( mod));
|
|
18
|
+
const mod = require_targeting_runtime();
|
|
19
|
+
return _chunk5LXNSDG2cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
277
20
|
};
|
|
278
21
|
var _instance = null;
|
|
279
22
|
var resolve = () => {
|
|
280
23
|
if (!_instance) {
|
|
281
|
-
const
|
|
282
|
-
_instance =
|
|
24
|
+
const def = loadDefinition();
|
|
25
|
+
_instance = _chunk5LXNSDG2cjs.createApiClient.call(void 0, { definition: def });
|
|
283
26
|
}
|
|
284
27
|
return _instance;
|
|
285
28
|
};
|
|
286
|
-
var _handle =
|
|
29
|
+
var _handle = _chunk5LXNSDG2cjs.createApiHandle.call(void 0, {
|
|
287
30
|
resolveClient: resolve,
|
|
288
|
-
createClient: () =>
|
|
31
|
+
createClient: () => _chunk5LXNSDG2cjs.createApiClient.call(void 0, { definition: loadDefinition() })
|
|
289
32
|
});
|
|
290
33
|
var getClient = _handle.getClient;
|
|
291
34
|
var createClient = _handle.createClient;
|
|
@@ -295,4 +38,4 @@ var targeting = _handle;
|
|
|
295
38
|
|
|
296
39
|
|
|
297
40
|
|
|
298
|
-
exports.authorize =
|
|
41
|
+
exports.authorize = _chunk5LXNSDG2cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.targeting = targeting;
|
package/dist/apis/targeting.js
CHANGED
|
@@ -2,284 +2,27 @@ import {
|
|
|
2
2
|
__commonJS,
|
|
3
3
|
authorize,
|
|
4
4
|
createApiClient,
|
|
5
|
-
createApiHandle
|
|
6
|
-
|
|
5
|
+
createApiHandle,
|
|
6
|
+
expand
|
|
7
|
+
} from "../chunk-QMQNMCOC.js";
|
|
7
8
|
|
|
8
|
-
// src/definitions/targeting.json
|
|
9
|
-
var
|
|
10
|
-
"src/definitions/targeting.json"(exports, module) {
|
|
11
|
-
module.exports = {
|
|
12
|
-
openapi: "3.0.3",
|
|
13
|
-
info: {
|
|
14
|
-
title: "",
|
|
15
|
-
version: ""
|
|
16
|
-
},
|
|
17
|
-
servers: [
|
|
18
|
-
{
|
|
19
|
-
url: "https://targeting.sls.epilot.io"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
paths: {
|
|
23
|
-
"/v1/campaign/{campaign_id}/status": {
|
|
24
|
-
post: {
|
|
25
|
-
operationId: "changeCampaignStatus",
|
|
26
|
-
parameters: [
|
|
27
|
-
{
|
|
28
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
responses: {}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"/v1/campaign/{campaign_id}/job": {
|
|
35
|
-
get: {
|
|
36
|
-
operationId: "getCampaignJobStatus",
|
|
37
|
-
parameters: [
|
|
38
|
-
{
|
|
39
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
responses: {}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"/v1/campaign/{campaign_id}/portals": {
|
|
46
|
-
get: {
|
|
47
|
-
operationId: "getCampaignPortals",
|
|
48
|
-
parameters: [
|
|
49
|
-
{
|
|
50
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
responses: {}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"/v1/campaign/{campaign_id}/automations:retrigger": {
|
|
57
|
-
post: {
|
|
58
|
-
operationId: "retriggerCampaignAutomations",
|
|
59
|
-
parameters: [
|
|
60
|
-
{
|
|
61
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
requestBody: {
|
|
65
|
-
required: true,
|
|
66
|
-
content: {
|
|
67
|
-
"application/json": {}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
responses: {}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"/v1/campaign:match": {
|
|
74
|
-
post: {
|
|
75
|
-
operationId: "matchCampaigns",
|
|
76
|
-
requestBody: {
|
|
77
|
-
required: true,
|
|
78
|
-
content: {
|
|
79
|
-
"application/json": {}
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
responses: {}
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"/v1/target:match": {
|
|
86
|
-
post: {
|
|
87
|
-
operationId: "matchTargets",
|
|
88
|
-
requestBody: {
|
|
89
|
-
required: true,
|
|
90
|
-
content: {
|
|
91
|
-
"application/json": {}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
responses: {}
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"/v1/target/queries": {
|
|
98
|
-
post: {
|
|
99
|
-
operationId: "getTargetQueries",
|
|
100
|
-
requestBody: {
|
|
101
|
-
required: true,
|
|
102
|
-
content: {
|
|
103
|
-
"application/json": {}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
responses: {}
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"/v1/campaign/{campaign_id}/recipient": {
|
|
110
|
-
post: {
|
|
111
|
-
operationId: "createRecipient",
|
|
112
|
-
parameters: [
|
|
113
|
-
{
|
|
114
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
requestBody: {
|
|
118
|
-
required: true,
|
|
119
|
-
content: {
|
|
120
|
-
"application/json": {}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
responses: {}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"/v1/campaign/{campaign_id}/recipient/{recipient_id}": {
|
|
127
|
-
patch: {
|
|
128
|
-
operationId: "updateRecipient",
|
|
129
|
-
parameters: [
|
|
130
|
-
{
|
|
131
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
$ref: "#/components/parameters/RecipientIdPathParam"
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
requestBody: {
|
|
138
|
-
required: true,
|
|
139
|
-
content: {
|
|
140
|
-
"application/json": {}
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
responses: {}
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
"/v1/campaign/{campaign_id}/recipient/{recipient_id}/portal:status": {
|
|
147
|
-
patch: {
|
|
148
|
-
operationId: "updateRecipientPortalStatus",
|
|
149
|
-
parameters: [
|
|
150
|
-
{
|
|
151
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
$ref: "#/components/parameters/RecipientIdPathParam"
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
requestBody: {
|
|
158
|
-
required: true,
|
|
159
|
-
content: {
|
|
160
|
-
"application/json": {}
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
responses: {}
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
"/v1/campaign/{campaign_id}/recipients": {
|
|
167
|
-
get: {
|
|
168
|
-
operationId: "getRecipients",
|
|
169
|
-
parameters: [
|
|
170
|
-
{
|
|
171
|
-
$ref: "#/components/parameters/CampaignIdPathParam"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
name: "limit",
|
|
175
|
-
in: "query"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
name: "next",
|
|
179
|
-
in: "query"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: "q",
|
|
183
|
-
in: "query"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
name: "automation_status",
|
|
187
|
-
in: "query"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
name: "portal_status",
|
|
191
|
-
in: "query"
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
responses: {}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
components: {
|
|
199
|
-
parameters: {
|
|
200
|
-
CampaignIdPathParam: {
|
|
201
|
-
name: "campaign_id",
|
|
202
|
-
in: "path",
|
|
203
|
-
required: true
|
|
204
|
-
},
|
|
205
|
-
RecipientIdPathParam: {
|
|
206
|
-
name: "recipient_id",
|
|
207
|
-
in: "path",
|
|
208
|
-
required: true
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
responses: {
|
|
212
|
-
ClientErrorResponse: {
|
|
213
|
-
content: {
|
|
214
|
-
"application/json": {}
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
ServerErrorResponse: {
|
|
218
|
-
content: {
|
|
219
|
-
"application/json": {}
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
CampaignResponse: {
|
|
223
|
-
content: {
|
|
224
|
-
"application/json": {}
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
JobStatusResponse: {
|
|
228
|
-
content: {
|
|
229
|
-
"application/json": {}
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
RecipientResponse: {
|
|
233
|
-
content: {
|
|
234
|
-
"application/json": {}
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
RecipientsResponse: {
|
|
238
|
-
content: {
|
|
239
|
-
"application/json": {}
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
MatchCampaignsResponse: {
|
|
243
|
-
content: {
|
|
244
|
-
"application/json": {}
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
MatchTargetsResponse: {
|
|
248
|
-
content: {
|
|
249
|
-
"application/json": {}
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
GetTargetQueriesResponse: {
|
|
253
|
-
content: {
|
|
254
|
-
"application/json": {}
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
CampaignPortalsResponse: {
|
|
258
|
-
content: {
|
|
259
|
-
"application/json": {}
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
RetriggerAutomationsResponse: {
|
|
263
|
-
content: {
|
|
264
|
-
"application/json": {}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
};
|
|
9
|
+
// src/definitions/targeting-runtime.json
|
|
10
|
+
var require_targeting_runtime = __commonJS({
|
|
11
|
+
"src/definitions/targeting-runtime.json"(exports, module) {
|
|
12
|
+
module.exports = { s: "https://targeting.sls.epilot.io", o: [["changeCampaignStatus", "post", "/v1/campaign/{campaign_id}/status", [["CampaignIdPathParam"]]], ["getCampaignJobStatus", "get", "/v1/campaign/{campaign_id}/job", [["CampaignIdPathParam"]]], ["getCampaignPortals", "get", "/v1/campaign/{campaign_id}/portals", [["CampaignIdPathParam"]]], ["retriggerCampaignAutomations", "post", "/v1/campaign/{campaign_id}/automations:retrigger", [["CampaignIdPathParam"]], 1], ["matchCampaigns", "post", "/v1/campaign:match", null, 1], ["matchTargets", "post", "/v1/target:match", null, 1], ["getTargetQueries", "post", "/v1/target/queries", null, 1], ["createRecipient", "post", "/v1/campaign/{campaign_id}/recipient", [["CampaignIdPathParam"]], 1], ["updateRecipient", "patch", "/v1/campaign/{campaign_id}/recipient/{recipient_id}", [["CampaignIdPathParam"], ["RecipientIdPathParam"]], 1], ["updateRecipientPortalStatus", "patch", "/v1/campaign/{campaign_id}/recipient/{recipient_id}/portal:status", [["CampaignIdPathParam"], ["RecipientIdPathParam"]], 1], ["getRecipients", "get", "/v1/campaign/{campaign_id}/recipients", [["CampaignIdPathParam"], ["limit", "q"], ["next", "q"], ["q", "q"], ["automation_status", "q"], ["portal_status", "q"]]]], v: "3.0.3", cp: { CampaignIdPathParam: ["campaign_id", "p", true], RecipientIdPathParam: ["recipient_id", "p", true] } };
|
|
270
13
|
}
|
|
271
14
|
});
|
|
272
15
|
|
|
273
16
|
// src/apis/targeting.ts
|
|
274
17
|
var loadDefinition = () => {
|
|
275
|
-
const mod =
|
|
276
|
-
return mod.default ?? mod;
|
|
18
|
+
const mod = require_targeting_runtime();
|
|
19
|
+
return expand(mod.default ?? mod);
|
|
277
20
|
};
|
|
278
21
|
var _instance = null;
|
|
279
22
|
var resolve = () => {
|
|
280
23
|
if (!_instance) {
|
|
281
|
-
const
|
|
282
|
-
_instance = createApiClient({ definition });
|
|
24
|
+
const def = loadDefinition();
|
|
25
|
+
_instance = createApiClient({ definition: def });
|
|
283
26
|
}
|
|
284
27
|
return _instance;
|
|
285
28
|
};
|