@livechat/developer-studio-api 3.1.56-beta → 3.1.56
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/dist/index.d.mts +921 -157
- package/dist/index.d.ts +921 -157
- package/dist/index.js +16 -22
- package/dist/index.mjs +16 -22
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2355,14 +2355,14 @@ var shopifyEventsZods = {
|
|
|
2355
2355
|
get unsubscribe() {
|
|
2356
2356
|
return this.source.and(
|
|
2357
2357
|
import_zod.z.object({
|
|
2358
|
-
event: this.
|
|
2358
|
+
event: this.event
|
|
2359
2359
|
})
|
|
2360
2360
|
);
|
|
2361
2361
|
},
|
|
2362
2362
|
get unsubscribeContent() {
|
|
2363
2363
|
return import_zod.z.object({
|
|
2364
2364
|
provider: this.provider,
|
|
2365
|
-
event: this.
|
|
2365
|
+
event: this.event
|
|
2366
2366
|
});
|
|
2367
2367
|
}
|
|
2368
2368
|
};
|
|
@@ -2383,9 +2383,11 @@ var mailchimpEventsZods = {
|
|
|
2383
2383
|
eventName: import_zod2.z.nativeEnum(MailchimpEventNames),
|
|
2384
2384
|
events: {
|
|
2385
2385
|
subscribed: import_zod2.z.object({
|
|
2386
|
+
listId: import_zod2.z.string(),
|
|
2386
2387
|
name: import_zod2.z.literal("subscribed" /* Subscribed */)
|
|
2387
2388
|
}),
|
|
2388
2389
|
unsubscribed: import_zod2.z.object({
|
|
2390
|
+
listId: import_zod2.z.string(),
|
|
2389
2391
|
name: import_zod2.z.literal("unsubscribed" /* Unsubscribed */)
|
|
2390
2392
|
})
|
|
2391
2393
|
},
|
|
@@ -2405,7 +2407,6 @@ var mailchimpEventsZods = {
|
|
|
2405
2407
|
return this.source.and(
|
|
2406
2408
|
import_zod2.z.object({
|
|
2407
2409
|
event: this.event,
|
|
2408
|
-
listId: import_zod2.z.string(),
|
|
2409
2410
|
callback: import_zod2.z.string()
|
|
2410
2411
|
})
|
|
2411
2412
|
);
|
|
@@ -2414,23 +2415,20 @@ var mailchimpEventsZods = {
|
|
|
2414
2415
|
return import_zod2.z.object({
|
|
2415
2416
|
provider: this.provider,
|
|
2416
2417
|
event: this.event,
|
|
2417
|
-
callback: import_zod2.z.string()
|
|
2418
|
-
listId: import_zod2.z.string()
|
|
2418
|
+
callback: import_zod2.z.string()
|
|
2419
2419
|
});
|
|
2420
2420
|
},
|
|
2421
2421
|
get unsubscribe() {
|
|
2422
2422
|
return this.source.and(
|
|
2423
2423
|
import_zod2.z.object({
|
|
2424
|
-
event: this.
|
|
2425
|
-
listId: import_zod2.z.string()
|
|
2424
|
+
event: this.event
|
|
2426
2425
|
})
|
|
2427
2426
|
);
|
|
2428
2427
|
},
|
|
2429
2428
|
get unsubscribeContent() {
|
|
2430
2429
|
return import_zod2.z.object({
|
|
2431
2430
|
provider: this.provider,
|
|
2432
|
-
event: this.
|
|
2433
|
-
listId: import_zod2.z.string()
|
|
2431
|
+
event: this.event
|
|
2434
2432
|
});
|
|
2435
2433
|
}
|
|
2436
2434
|
};
|
|
@@ -2524,14 +2522,14 @@ var textLivechatEventsZods = {
|
|
|
2524
2522
|
get unsubscribe() {
|
|
2525
2523
|
return this.source.and(
|
|
2526
2524
|
import_zod3.z.object({
|
|
2527
|
-
event: this.
|
|
2525
|
+
event: this.event
|
|
2528
2526
|
})
|
|
2529
2527
|
);
|
|
2530
2528
|
},
|
|
2531
2529
|
get unsubscribeContent() {
|
|
2532
2530
|
return import_zod3.z.object({
|
|
2533
2531
|
provider: this.provider,
|
|
2534
|
-
event: this.
|
|
2532
|
+
event: this.event
|
|
2535
2533
|
});
|
|
2536
2534
|
}
|
|
2537
2535
|
};
|
|
@@ -2588,14 +2586,14 @@ var hubspotEventsZods = {
|
|
|
2588
2586
|
get unsubscribe() {
|
|
2589
2587
|
return this.source.and(
|
|
2590
2588
|
import_zod4.z.object({
|
|
2591
|
-
event: this.
|
|
2589
|
+
event: this.event
|
|
2592
2590
|
})
|
|
2593
2591
|
);
|
|
2594
2592
|
},
|
|
2595
2593
|
get unsubscribeContent() {
|
|
2596
2594
|
return import_zod4.z.object({
|
|
2597
2595
|
provider: this.provider,
|
|
2598
|
-
event: this.
|
|
2596
|
+
event: this.event
|
|
2599
2597
|
});
|
|
2600
2598
|
}
|
|
2601
2599
|
};
|
|
@@ -2672,14 +2670,14 @@ var bigcommerceEventsZods = {
|
|
|
2672
2670
|
get unsubscribe() {
|
|
2673
2671
|
return this.source.and(
|
|
2674
2672
|
import_zod5.z.object({
|
|
2675
|
-
event: this.
|
|
2673
|
+
event: this.event
|
|
2676
2674
|
})
|
|
2677
2675
|
);
|
|
2678
2676
|
},
|
|
2679
2677
|
get unsubscribeContent() {
|
|
2680
2678
|
return import_zod5.z.object({
|
|
2681
2679
|
provider: this.provider,
|
|
2682
|
-
event: this.
|
|
2680
|
+
event: this.event
|
|
2683
2681
|
});
|
|
2684
2682
|
}
|
|
2685
2683
|
};
|
|
@@ -3693,17 +3691,13 @@ var textPlatformWorkflowsApi = {
|
|
|
3693
3691
|
);
|
|
3694
3692
|
});
|
|
3695
3693
|
},
|
|
3696
|
-
deleteWorkflow(workflowId,
|
|
3694
|
+
deleteWorkflow(workflowId, authorization) {
|
|
3697
3695
|
return __async(this, null, function* () {
|
|
3698
3696
|
return textClientInstance.delete(
|
|
3699
3697
|
`/workflow_platform/workflows/${encodeURIComponent(workflowId)}`,
|
|
3700
|
-
|
|
3698
|
+
__spreadValues({}, getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
3701
3699
|
ensureAuthorizationToken: true
|
|
3702
|
-
})))
|
|
3703
|
-
data: {
|
|
3704
|
-
third_party_headers: thirdPartyHeaders
|
|
3705
|
-
}
|
|
3706
|
-
})
|
|
3700
|
+
})))
|
|
3707
3701
|
);
|
|
3708
3702
|
});
|
|
3709
3703
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -2202,14 +2202,14 @@ var shopifyEventsZods = {
|
|
|
2202
2202
|
get unsubscribe() {
|
|
2203
2203
|
return this.source.and(
|
|
2204
2204
|
z.object({
|
|
2205
|
-
event: this.
|
|
2205
|
+
event: this.event
|
|
2206
2206
|
})
|
|
2207
2207
|
);
|
|
2208
2208
|
},
|
|
2209
2209
|
get unsubscribeContent() {
|
|
2210
2210
|
return z.object({
|
|
2211
2211
|
provider: this.provider,
|
|
2212
|
-
event: this.
|
|
2212
|
+
event: this.event
|
|
2213
2213
|
});
|
|
2214
2214
|
}
|
|
2215
2215
|
};
|
|
@@ -2230,9 +2230,11 @@ var mailchimpEventsZods = {
|
|
|
2230
2230
|
eventName: z2.nativeEnum(MailchimpEventNames),
|
|
2231
2231
|
events: {
|
|
2232
2232
|
subscribed: z2.object({
|
|
2233
|
+
listId: z2.string(),
|
|
2233
2234
|
name: z2.literal("subscribed" /* Subscribed */)
|
|
2234
2235
|
}),
|
|
2235
2236
|
unsubscribed: z2.object({
|
|
2237
|
+
listId: z2.string(),
|
|
2236
2238
|
name: z2.literal("unsubscribed" /* Unsubscribed */)
|
|
2237
2239
|
})
|
|
2238
2240
|
},
|
|
@@ -2252,7 +2254,6 @@ var mailchimpEventsZods = {
|
|
|
2252
2254
|
return this.source.and(
|
|
2253
2255
|
z2.object({
|
|
2254
2256
|
event: this.event,
|
|
2255
|
-
listId: z2.string(),
|
|
2256
2257
|
callback: z2.string()
|
|
2257
2258
|
})
|
|
2258
2259
|
);
|
|
@@ -2261,23 +2262,20 @@ var mailchimpEventsZods = {
|
|
|
2261
2262
|
return z2.object({
|
|
2262
2263
|
provider: this.provider,
|
|
2263
2264
|
event: this.event,
|
|
2264
|
-
callback: z2.string()
|
|
2265
|
-
listId: z2.string()
|
|
2265
|
+
callback: z2.string()
|
|
2266
2266
|
});
|
|
2267
2267
|
},
|
|
2268
2268
|
get unsubscribe() {
|
|
2269
2269
|
return this.source.and(
|
|
2270
2270
|
z2.object({
|
|
2271
|
-
event: this.
|
|
2272
|
-
listId: z2.string()
|
|
2271
|
+
event: this.event
|
|
2273
2272
|
})
|
|
2274
2273
|
);
|
|
2275
2274
|
},
|
|
2276
2275
|
get unsubscribeContent() {
|
|
2277
2276
|
return z2.object({
|
|
2278
2277
|
provider: this.provider,
|
|
2279
|
-
event: this.
|
|
2280
|
-
listId: z2.string()
|
|
2278
|
+
event: this.event
|
|
2281
2279
|
});
|
|
2282
2280
|
}
|
|
2283
2281
|
};
|
|
@@ -2371,14 +2369,14 @@ var textLivechatEventsZods = {
|
|
|
2371
2369
|
get unsubscribe() {
|
|
2372
2370
|
return this.source.and(
|
|
2373
2371
|
z3.object({
|
|
2374
|
-
event: this.
|
|
2372
|
+
event: this.event
|
|
2375
2373
|
})
|
|
2376
2374
|
);
|
|
2377
2375
|
},
|
|
2378
2376
|
get unsubscribeContent() {
|
|
2379
2377
|
return z3.object({
|
|
2380
2378
|
provider: this.provider,
|
|
2381
|
-
event: this.
|
|
2379
|
+
event: this.event
|
|
2382
2380
|
});
|
|
2383
2381
|
}
|
|
2384
2382
|
};
|
|
@@ -2435,14 +2433,14 @@ var hubspotEventsZods = {
|
|
|
2435
2433
|
get unsubscribe() {
|
|
2436
2434
|
return this.source.and(
|
|
2437
2435
|
z4.object({
|
|
2438
|
-
event: this.
|
|
2436
|
+
event: this.event
|
|
2439
2437
|
})
|
|
2440
2438
|
);
|
|
2441
2439
|
},
|
|
2442
2440
|
get unsubscribeContent() {
|
|
2443
2441
|
return z4.object({
|
|
2444
2442
|
provider: this.provider,
|
|
2445
|
-
event: this.
|
|
2443
|
+
event: this.event
|
|
2446
2444
|
});
|
|
2447
2445
|
}
|
|
2448
2446
|
};
|
|
@@ -2519,14 +2517,14 @@ var bigcommerceEventsZods = {
|
|
|
2519
2517
|
get unsubscribe() {
|
|
2520
2518
|
return this.source.and(
|
|
2521
2519
|
z5.object({
|
|
2522
|
-
event: this.
|
|
2520
|
+
event: this.event
|
|
2523
2521
|
})
|
|
2524
2522
|
);
|
|
2525
2523
|
},
|
|
2526
2524
|
get unsubscribeContent() {
|
|
2527
2525
|
return z5.object({
|
|
2528
2526
|
provider: this.provider,
|
|
2529
|
-
event: this.
|
|
2527
|
+
event: this.event
|
|
2530
2528
|
});
|
|
2531
2529
|
}
|
|
2532
2530
|
};
|
|
@@ -3540,17 +3538,13 @@ var textPlatformWorkflowsApi = {
|
|
|
3540
3538
|
);
|
|
3541
3539
|
});
|
|
3542
3540
|
},
|
|
3543
|
-
deleteWorkflow(workflowId,
|
|
3541
|
+
deleteWorkflow(workflowId, authorization) {
|
|
3544
3542
|
return __async(this, null, function* () {
|
|
3545
3543
|
return textClientInstance.delete(
|
|
3546
3544
|
`/workflow_platform/workflows/${encodeURIComponent(workflowId)}`,
|
|
3547
|
-
|
|
3545
|
+
__spreadValues({}, getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
3548
3546
|
ensureAuthorizationToken: true
|
|
3549
|
-
})))
|
|
3550
|
-
data: {
|
|
3551
|
-
third_party_headers: thirdPartyHeaders
|
|
3552
|
-
}
|
|
3553
|
-
})
|
|
3547
|
+
})))
|
|
3554
3548
|
);
|
|
3555
3549
|
});
|
|
3556
3550
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "3.1.56
|
|
3
|
+
"version": "3.1.56",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@types/node": "^17.0.12",
|
|
21
21
|
"tsup": "^7.1.0",
|
|
22
22
|
"typescript": "^5.1.6",
|
|
23
|
-
"
|
|
23
|
+
"utils": "0.0.4",
|
|
24
24
|
"tsconfig": "0.0.1",
|
|
25
|
-
"
|
|
25
|
+
"eslint-config-custom": "0.0.8"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsup",
|