@livechat/developer-studio-api 3.1.56-beta → 3.1.57
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 +963 -158
- package/dist/index.d.ts +963 -158
- package/dist/index.js +18 -23
- package/dist/index.mjs +18 -23
- package/package.json +1 -1
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
|
};
|
|
@@ -2470,7 +2468,8 @@ var textLivechatEventsZods = {
|
|
|
2470
2468
|
exact: import_zod3.z.boolean().optional()
|
|
2471
2469
|
}),
|
|
2472
2470
|
chatRated: import_zod3.z.object({
|
|
2473
|
-
name: import_zod3.z.literal("chat_rated" /* ChatRated */)
|
|
2471
|
+
name: import_zod3.z.literal("chat_rated" /* ChatRated */),
|
|
2472
|
+
rating: import_zod3.z.enum(["good", "bad"]).optional()
|
|
2474
2473
|
}),
|
|
2475
2474
|
chatCommented: import_zod3.z.object({
|
|
2476
2475
|
name: import_zod3.z.literal("chat_commented" /* ChatCommented */)
|
|
@@ -2524,14 +2523,14 @@ var textLivechatEventsZods = {
|
|
|
2524
2523
|
get unsubscribe() {
|
|
2525
2524
|
return this.source.and(
|
|
2526
2525
|
import_zod3.z.object({
|
|
2527
|
-
event: this.
|
|
2526
|
+
event: this.event
|
|
2528
2527
|
})
|
|
2529
2528
|
);
|
|
2530
2529
|
},
|
|
2531
2530
|
get unsubscribeContent() {
|
|
2532
2531
|
return import_zod3.z.object({
|
|
2533
2532
|
provider: this.provider,
|
|
2534
|
-
event: this.
|
|
2533
|
+
event: this.event
|
|
2535
2534
|
});
|
|
2536
2535
|
}
|
|
2537
2536
|
};
|
|
@@ -2588,14 +2587,14 @@ var hubspotEventsZods = {
|
|
|
2588
2587
|
get unsubscribe() {
|
|
2589
2588
|
return this.source.and(
|
|
2590
2589
|
import_zod4.z.object({
|
|
2591
|
-
event: this.
|
|
2590
|
+
event: this.event
|
|
2592
2591
|
})
|
|
2593
2592
|
);
|
|
2594
2593
|
},
|
|
2595
2594
|
get unsubscribeContent() {
|
|
2596
2595
|
return import_zod4.z.object({
|
|
2597
2596
|
provider: this.provider,
|
|
2598
|
-
event: this.
|
|
2597
|
+
event: this.event
|
|
2599
2598
|
});
|
|
2600
2599
|
}
|
|
2601
2600
|
};
|
|
@@ -2672,14 +2671,14 @@ var bigcommerceEventsZods = {
|
|
|
2672
2671
|
get unsubscribe() {
|
|
2673
2672
|
return this.source.and(
|
|
2674
2673
|
import_zod5.z.object({
|
|
2675
|
-
event: this.
|
|
2674
|
+
event: this.event
|
|
2676
2675
|
})
|
|
2677
2676
|
);
|
|
2678
2677
|
},
|
|
2679
2678
|
get unsubscribeContent() {
|
|
2680
2679
|
return import_zod5.z.object({
|
|
2681
2680
|
provider: this.provider,
|
|
2682
|
-
event: this.
|
|
2681
|
+
event: this.event
|
|
2683
2682
|
});
|
|
2684
2683
|
}
|
|
2685
2684
|
};
|
|
@@ -3693,17 +3692,13 @@ var textPlatformWorkflowsApi = {
|
|
|
3693
3692
|
);
|
|
3694
3693
|
});
|
|
3695
3694
|
},
|
|
3696
|
-
deleteWorkflow(workflowId,
|
|
3695
|
+
deleteWorkflow(workflowId, authorization) {
|
|
3697
3696
|
return __async(this, null, function* () {
|
|
3698
3697
|
return textClientInstance.delete(
|
|
3699
3698
|
`/workflow_platform/workflows/${encodeURIComponent(workflowId)}`,
|
|
3700
|
-
|
|
3699
|
+
__spreadValues({}, getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
3701
3700
|
ensureAuthorizationToken: true
|
|
3702
|
-
})))
|
|
3703
|
-
data: {
|
|
3704
|
-
third_party_headers: thirdPartyHeaders
|
|
3705
|
-
}
|
|
3706
|
-
})
|
|
3701
|
+
})))
|
|
3707
3702
|
);
|
|
3708
3703
|
});
|
|
3709
3704
|
},
|
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
|
};
|
|
@@ -2317,7 +2315,8 @@ var textLivechatEventsZods = {
|
|
|
2317
2315
|
exact: z3.boolean().optional()
|
|
2318
2316
|
}),
|
|
2319
2317
|
chatRated: z3.object({
|
|
2320
|
-
name: z3.literal("chat_rated" /* ChatRated */)
|
|
2318
|
+
name: z3.literal("chat_rated" /* ChatRated */),
|
|
2319
|
+
rating: z3.enum(["good", "bad"]).optional()
|
|
2321
2320
|
}),
|
|
2322
2321
|
chatCommented: z3.object({
|
|
2323
2322
|
name: z3.literal("chat_commented" /* ChatCommented */)
|
|
@@ -2371,14 +2370,14 @@ var textLivechatEventsZods = {
|
|
|
2371
2370
|
get unsubscribe() {
|
|
2372
2371
|
return this.source.and(
|
|
2373
2372
|
z3.object({
|
|
2374
|
-
event: this.
|
|
2373
|
+
event: this.event
|
|
2375
2374
|
})
|
|
2376
2375
|
);
|
|
2377
2376
|
},
|
|
2378
2377
|
get unsubscribeContent() {
|
|
2379
2378
|
return z3.object({
|
|
2380
2379
|
provider: this.provider,
|
|
2381
|
-
event: this.
|
|
2380
|
+
event: this.event
|
|
2382
2381
|
});
|
|
2383
2382
|
}
|
|
2384
2383
|
};
|
|
@@ -2435,14 +2434,14 @@ var hubspotEventsZods = {
|
|
|
2435
2434
|
get unsubscribe() {
|
|
2436
2435
|
return this.source.and(
|
|
2437
2436
|
z4.object({
|
|
2438
|
-
event: this.
|
|
2437
|
+
event: this.event
|
|
2439
2438
|
})
|
|
2440
2439
|
);
|
|
2441
2440
|
},
|
|
2442
2441
|
get unsubscribeContent() {
|
|
2443
2442
|
return z4.object({
|
|
2444
2443
|
provider: this.provider,
|
|
2445
|
-
event: this.
|
|
2444
|
+
event: this.event
|
|
2446
2445
|
});
|
|
2447
2446
|
}
|
|
2448
2447
|
};
|
|
@@ -2519,14 +2518,14 @@ var bigcommerceEventsZods = {
|
|
|
2519
2518
|
get unsubscribe() {
|
|
2520
2519
|
return this.source.and(
|
|
2521
2520
|
z5.object({
|
|
2522
|
-
event: this.
|
|
2521
|
+
event: this.event
|
|
2523
2522
|
})
|
|
2524
2523
|
);
|
|
2525
2524
|
},
|
|
2526
2525
|
get unsubscribeContent() {
|
|
2527
2526
|
return z5.object({
|
|
2528
2527
|
provider: this.provider,
|
|
2529
|
-
event: this.
|
|
2528
|
+
event: this.event
|
|
2530
2529
|
});
|
|
2531
2530
|
}
|
|
2532
2531
|
};
|
|
@@ -3540,17 +3539,13 @@ var textPlatformWorkflowsApi = {
|
|
|
3540
3539
|
);
|
|
3541
3540
|
});
|
|
3542
3541
|
},
|
|
3543
|
-
deleteWorkflow(workflowId,
|
|
3542
|
+
deleteWorkflow(workflowId, authorization) {
|
|
3544
3543
|
return __async(this, null, function* () {
|
|
3545
3544
|
return textClientInstance.delete(
|
|
3546
3545
|
`/workflow_platform/workflows/${encodeURIComponent(workflowId)}`,
|
|
3547
|
-
|
|
3546
|
+
__spreadValues({}, getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
3548
3547
|
ensureAuthorizationToken: true
|
|
3549
|
-
})))
|
|
3550
|
-
data: {
|
|
3551
|
-
third_party_headers: thirdPartyHeaders
|
|
3552
|
-
}
|
|
3553
|
-
})
|
|
3548
|
+
})))
|
|
3554
3549
|
);
|
|
3555
3550
|
});
|
|
3556
3551
|
},
|