@smartlyqofficial/node 0.1.69 → 0.1.71
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 +22 -7
- package/dist/index.cjs +74 -14
- package/dist/index.d.cts +589 -32
- package/dist/index.d.ts +589 -32
- package/dist/index.js +74 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -160,12 +160,12 @@ var AdsResource = class {
|
|
|
160
160
|
return this._client.request("DELETE", `/ads/campaigns/${encodeURIComponent(id)}`, { options });
|
|
161
161
|
}
|
|
162
162
|
/** Pause a campaign `POST /ads/campaigns/{id}/pause` */
|
|
163
|
-
pauseCampaign(id, options) {
|
|
164
|
-
return this._client.request("POST", `/ads/campaigns/${encodeURIComponent(id)}/pause`, { options });
|
|
163
|
+
pauseCampaign(id, body, options) {
|
|
164
|
+
return this._client.request("POST", `/ads/campaigns/${encodeURIComponent(id)}/pause`, { body, options });
|
|
165
165
|
}
|
|
166
166
|
/** Resume a campaign `POST /ads/campaigns/{id}/resume` */
|
|
167
|
-
resumeCampaign(id, options) {
|
|
168
|
-
return this._client.request("POST", `/ads/campaigns/${encodeURIComponent(id)}/resume`, { options });
|
|
167
|
+
resumeCampaign(id, body, options) {
|
|
168
|
+
return this._client.request("POST", `/ads/campaigns/${encodeURIComponent(id)}/resume`, { body, options });
|
|
169
169
|
}
|
|
170
170
|
/** Duplicate a campaign `POST /ads/campaigns/{id}/duplicate` */
|
|
171
171
|
duplicateCampaign(id, options) {
|
|
@@ -192,12 +192,12 @@ var AdsResource = class {
|
|
|
192
192
|
return this._client.request("DELETE", `/ads/ad-sets/${encodeURIComponent(id)}`, { options });
|
|
193
193
|
}
|
|
194
194
|
/** Pause an ad set `POST /ads/ad-sets/{id}/pause` */
|
|
195
|
-
pauseSet(id, options) {
|
|
196
|
-
return this._client.request("POST", `/ads/ad-sets/${encodeURIComponent(id)}/pause`, { options });
|
|
195
|
+
pauseSet(id, body, options) {
|
|
196
|
+
return this._client.request("POST", `/ads/ad-sets/${encodeURIComponent(id)}/pause`, { body, options });
|
|
197
197
|
}
|
|
198
198
|
/** Resume an ad set `POST /ads/ad-sets/{id}/resume` */
|
|
199
|
-
resumeSet(id, options) {
|
|
200
|
-
return this._client.request("POST", `/ads/ad-sets/${encodeURIComponent(id)}/resume`, { options });
|
|
199
|
+
resumeSet(id, body, options) {
|
|
200
|
+
return this._client.request("POST", `/ads/ad-sets/${encodeURIComponent(id)}/resume`, { body, options });
|
|
201
201
|
}
|
|
202
202
|
/** Duplicate an ad set `POST /ads/ad-sets/{id}/duplicate` */
|
|
203
203
|
duplicateSet(id, options) {
|
|
@@ -220,12 +220,12 @@ var AdsResource = class {
|
|
|
220
220
|
return this._client.request("DELETE", `/ads/ads/${encodeURIComponent(id)}`, { options });
|
|
221
221
|
}
|
|
222
222
|
/** Pause an ad `POST /ads/ads/{id}/pause` */
|
|
223
|
-
pause(id, options) {
|
|
224
|
-
return this._client.request("POST", `/ads/ads/${encodeURIComponent(id)}/pause`, { options });
|
|
223
|
+
pause(id, body, options) {
|
|
224
|
+
return this._client.request("POST", `/ads/ads/${encodeURIComponent(id)}/pause`, { body, options });
|
|
225
225
|
}
|
|
226
226
|
/** Resume an ad `POST /ads/ads/{id}/resume` */
|
|
227
|
-
resume(id, options) {
|
|
228
|
-
return this._client.request("POST", `/ads/ads/${encodeURIComponent(id)}/resume`, { options });
|
|
227
|
+
resume(id, body, options) {
|
|
228
|
+
return this._client.request("POST", `/ads/ads/${encodeURIComponent(id)}/resume`, { body, options });
|
|
229
229
|
}
|
|
230
230
|
/** Duplicate an ad `POST /ads/ads/{id}/duplicate` */
|
|
231
231
|
duplicate(id, options) {
|
|
@@ -334,8 +334,8 @@ var AnalyticsResource = class {
|
|
|
334
334
|
return this._client.request("GET", "/analytics/posts", { query, options });
|
|
335
335
|
}
|
|
336
336
|
/** Get account analytics `GET /analytics/accounts/{account_id}` */
|
|
337
|
-
getAccount(accountId,
|
|
338
|
-
return this._client.request("GET", `/analytics/accounts/${encodeURIComponent(accountId)}`, {
|
|
337
|
+
getAccount(accountId, options) {
|
|
338
|
+
return this._client.request("GET", `/analytics/accounts/${encodeURIComponent(accountId)}`, { options });
|
|
339
339
|
}
|
|
340
340
|
/** Daily metrics `GET /analytics/daily-metrics` */
|
|
341
341
|
dailyMetrics(query, options) {
|
|
@@ -501,6 +501,10 @@ var CalendarResource = class {
|
|
|
501
501
|
listSlots(query, options) {
|
|
502
502
|
return this._client.request("GET", "/calendar/slots", { query, options });
|
|
503
503
|
}
|
|
504
|
+
/** List bookings `GET /calendar/bookings` */
|
|
505
|
+
listBookings(query, options) {
|
|
506
|
+
return this._client.request("GET", "/calendar/bookings", { query, options });
|
|
507
|
+
}
|
|
504
508
|
/** Take a booking `POST /calendar/bookings` */
|
|
505
509
|
createBooking(body, options) {
|
|
506
510
|
return this._client.request("POST", "/calendar/bookings", { body, options });
|
|
@@ -509,6 +513,62 @@ var CalendarResource = class {
|
|
|
509
513
|
cancelBooking(id, body, options) {
|
|
510
514
|
return this._client.request("POST", `/calendar/bookings/${encodeURIComponent(id)}/cancel`, { body, options });
|
|
511
515
|
}
|
|
516
|
+
/** Get a booking `GET /calendar/bookings/{id}` */
|
|
517
|
+
getBooking(id, options) {
|
|
518
|
+
return this._client.request("GET", `/calendar/bookings/${encodeURIComponent(id)}`, { options });
|
|
519
|
+
}
|
|
520
|
+
/** Set a booking's status `POST /calendar/bookings/{id}/status` */
|
|
521
|
+
setBookingStatus(id, body, options) {
|
|
522
|
+
return this._client.request("POST", `/calendar/bookings/${encodeURIComponent(id)}/status`, { body, options });
|
|
523
|
+
}
|
|
524
|
+
/** Reschedule a booking `POST /calendar/bookings/{id}/reschedule` */
|
|
525
|
+
rescheduleBooking(id, body, options) {
|
|
526
|
+
return this._client.request("POST", `/calendar/bookings/${encodeURIComponent(id)}/reschedule`, { body, options });
|
|
527
|
+
}
|
|
528
|
+
/** List booking notes `GET /calendar/bookings/{id}/notes` */
|
|
529
|
+
listBookingNotes(id, options) {
|
|
530
|
+
return this._client.request("GET", `/calendar/bookings/${encodeURIComponent(id)}/notes`, { options });
|
|
531
|
+
}
|
|
532
|
+
/** Add a booking note `POST /calendar/bookings/{id}/notes` */
|
|
533
|
+
addBookingNote(id, body, options) {
|
|
534
|
+
return this._client.request("POST", `/calendar/bookings/${encodeURIComponent(id)}/notes`, { body, options });
|
|
535
|
+
}
|
|
536
|
+
/** Delete a booking note `DELETE /calendar/bookings/{id}/notes/{note_id}` */
|
|
537
|
+
deleteBookingNote(id, noteId, options) {
|
|
538
|
+
return this._client.request("DELETE", `/calendar/bookings/${encodeURIComponent(id)}/notes/${encodeURIComponent(noteId)}`, { options });
|
|
539
|
+
}
|
|
540
|
+
/** List blocked time `GET /calendar/blocked-times` */
|
|
541
|
+
listBlockedTimes(query, options) {
|
|
542
|
+
return this._client.request("GET", "/calendar/blocked-times", { query, options });
|
|
543
|
+
}
|
|
544
|
+
/** Block off time `POST /calendar/blocked-times` */
|
|
545
|
+
createBlockedTime(body, options) {
|
|
546
|
+
return this._client.request("POST", "/calendar/blocked-times", { body, options });
|
|
547
|
+
}
|
|
548
|
+
/** Free blocked time `DELETE /calendar/blocked-times/{id}` */
|
|
549
|
+
deleteBlockedTime(id, options) {
|
|
550
|
+
return this._client.request("DELETE", `/calendar/blocked-times/${encodeURIComponent(id)}`, { options });
|
|
551
|
+
}
|
|
552
|
+
/** List availability schedules `GET /calendar/availability` */
|
|
553
|
+
listAvailabilitySchedules(options) {
|
|
554
|
+
return this._client.request("GET", "/calendar/availability", { options });
|
|
555
|
+
}
|
|
556
|
+
/** Create an availability schedule `POST /calendar/availability` */
|
|
557
|
+
createAvailabilitySchedule(body, options) {
|
|
558
|
+
return this._client.request("POST", "/calendar/availability", { body, options });
|
|
559
|
+
}
|
|
560
|
+
/** Update an availability schedule `PATCH /calendar/availability/{id}` */
|
|
561
|
+
updateAvailabilitySchedule(id, body, options) {
|
|
562
|
+
return this._client.request("PATCH", `/calendar/availability/${encodeURIComponent(id)}`, { body, options });
|
|
563
|
+
}
|
|
564
|
+
/** Delete an availability schedule `DELETE /calendar/availability/{id}` */
|
|
565
|
+
deleteAvailabilitySchedule(id, options) {
|
|
566
|
+
return this._client.request("DELETE", `/calendar/availability/${encodeURIComponent(id)}`, { options });
|
|
567
|
+
}
|
|
568
|
+
/** List busy times `GET /calendar/busy-times` */
|
|
569
|
+
listBusyTimes(query, options) {
|
|
570
|
+
return this._client.request("GET", "/calendar/busy-times", { query, options });
|
|
571
|
+
}
|
|
512
572
|
};
|
|
513
573
|
var ChatbotsResource = class {
|
|
514
574
|
constructor(_client) {
|