@tellescope/sdk 1.13.0 → 1.13.1
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/lib/cjs/session.d.ts +1 -1
- package/lib/cjs/session.d.ts.map +1 -1
- package/lib/cjs/session.js +5 -3
- package/lib/cjs/session.js.map +1 -1
- package/lib/cjs/tests/tests.d.ts.map +1 -1
- package/lib/cjs/tests/tests.js +8 -5
- package/lib/cjs/tests/tests.js.map +1 -1
- package/lib/cjs/tests/webhooks_tests.js +1 -0
- package/lib/cjs/tests/webhooks_tests.js.map +1 -1
- package/lib/esm/session.d.ts +1 -1
- package/lib/esm/session.d.ts.map +1 -1
- package/lib/esm/session.js +5 -3
- package/lib/esm/session.js.map +1 -1
- package/lib/esm/tests/tests.d.ts.map +1 -1
- package/lib/esm/tests/tests.js +8 -5
- package/lib/esm/tests/tests.js.map +1 -1
- package/lib/esm/tests/webhooks_tests.js +1 -0
- package/lib/esm/tests/webhooks_tests.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/session.ts +5 -3
- package/src/tests/tests.ts +6 -3
- package/src/tests/webhooks_tests.ts +1 -0
package/src/tests/tests.ts
CHANGED
|
@@ -3682,15 +3682,18 @@ export const self_serve_appointment_booking_tests = async () => {
|
|
|
3682
3682
|
confirmationSMSDisabled: true,
|
|
3683
3683
|
})
|
|
3684
3684
|
|
|
3685
|
+
// ensure it doesn't match current day, to avoid errors on testing
|
|
3686
|
+
const dayOfWeekStartingSundayIndexedByZero = (new Date().getDay() + 1) % 7
|
|
3687
|
+
|
|
3685
3688
|
await sdk.api.users.updateOne(sdk.userInfo.id, {
|
|
3686
3689
|
weeklyAvailabilities: [
|
|
3687
3690
|
{
|
|
3688
|
-
dayOfWeekStartingSundayIndexedByZero
|
|
3691
|
+
dayOfWeekStartingSundayIndexedByZero,
|
|
3689
3692
|
startTimeInMinutes: 60 * 12, // noon,
|
|
3690
3693
|
endTimeInMinutes: 60 * 13, // 1pm,
|
|
3691
3694
|
},
|
|
3692
3695
|
{ // include as duplicate of above to ensure it doesn't produce extra availability slots
|
|
3693
|
-
dayOfWeekStartingSundayIndexedByZero
|
|
3696
|
+
dayOfWeekStartingSundayIndexedByZero, // sunday
|
|
3694
3697
|
startTimeInMinutes: 60 * 12, // noon,
|
|
3695
3698
|
endTimeInMinutes: 60 * 13, // 1pm,
|
|
3696
3699
|
},
|
|
@@ -3704,7 +3707,7 @@ export const self_serve_appointment_booking_tests = async () => {
|
|
|
3704
3707
|
await sdkNonAdmin.api.users.updateOne(sdkNonAdmin.userInfo.id, {
|
|
3705
3708
|
weeklyAvailabilities: [
|
|
3706
3709
|
{
|
|
3707
|
-
dayOfWeekStartingSundayIndexedByZero
|
|
3710
|
+
dayOfWeekStartingSundayIndexedByZero, // sunday
|
|
3708
3711
|
startTimeInMinutes: 60 * 12, // noon,
|
|
3709
3712
|
endTimeInMinutes: 60 * 13, // 1pm,
|
|
3710
3713
|
},
|
|
@@ -227,6 +227,7 @@ const endusers_tests = async (isSubscribed: boolean) => {
|
|
|
227
227
|
delete a.updates?.[0]?.recordBeforeUpdate.lockId
|
|
228
228
|
delete a.updates?.[0]?.recordBeforeUpdate.updatedAt
|
|
229
229
|
delete (enduser as any).updatedAt
|
|
230
|
+
delete (enduser as any).___didInsert
|
|
230
231
|
|
|
231
232
|
return (
|
|
232
233
|
objects_equivalent(a.updates?.[0]?.recordBeforeUpdate, enduser)
|