uapp-communication-sdk 1.0.0-dev.86 → 1.0.0-dev.88
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/communication-sdk.cjs +2 -2
- package/communication-sdk.js +54 -27
- package/communication-sdk.standalone.js +145 -145
- package/package.json +1 -1
- package/types/features/schedule/domain/schedule-block.d.ts +13 -0
- package/types/features/schedule/domain/schedule-block.d.ts.map +1 -1
- package/types/features/schedule/infrastructure/dto/schedule-dtos.d.ts +12 -0
- package/types/features/schedule/infrastructure/dto/schedule-dtos.d.ts.map +1 -1
- package/types/features/schedule/infrastructure/schedule-mappers.d.ts.map +1 -1
- package/types/features/schedule/presentation/BlockEditor.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -15,6 +15,18 @@ export interface ScheduleBlockProps {
|
|
|
15
15
|
readonly notes: string;
|
|
16
16
|
/** The recurrence rule, or `null` for a one-off block. */
|
|
17
17
|
readonly recurrence: Recurrence | null;
|
|
18
|
+
/**
|
|
19
|
+
* The meeting this block came from, or `null`/absent when the person made it themselves.
|
|
20
|
+
*
|
|
21
|
+
* Deleting the two is not the same act: a personal block is private, while a booking's block is one
|
|
22
|
+
* copy of a meeting that also sits on everybody else's calendar — removing it cancels the meeting for
|
|
23
|
+
* all of them. The UI needs to tell them apart to say so before it happens.
|
|
24
|
+
*
|
|
25
|
+
* Optional on the way IN and always `string | null` on the way out: only the gateway ever knows a
|
|
26
|
+
* meeting id, so every other caller — a draft the user is typing, a fixture — would otherwise have to
|
|
27
|
+
* pass a `null` that means nothing to it.
|
|
28
|
+
*/
|
|
29
|
+
readonly sourceMeetingId?: string | null | undefined;
|
|
18
30
|
}
|
|
19
31
|
/** The fields a user supplies for a block — the `id` is assigned by the gateway on create. */
|
|
20
32
|
export type ScheduleBlockDraft = Omit<ScheduleBlockProps, 'id'>;
|
|
@@ -29,6 +41,7 @@ export declare class ScheduleBlock {
|
|
|
29
41
|
readonly allDay: boolean;
|
|
30
42
|
readonly notes: string;
|
|
31
43
|
readonly recurrence: Recurrence | null;
|
|
44
|
+
readonly sourceMeetingId: string | null;
|
|
32
45
|
constructor(props: ScheduleBlockProps);
|
|
33
46
|
/** Length of the block in minutes. */
|
|
34
47
|
get durationMinutes(): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-block.d.ts","sourceRoot":"","sources":["../../../../../../src/features/schedule/domain/schedule-block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,cAAc,CAAC;AAEpD,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,6EAA6E;IAC7E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,gFAAgF;IAChF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,0DAA0D;IAC1D,QAAQ,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"schedule-block.d.ts","sourceRoot":"","sources":["../../../../../../src/features/schedule/domain/schedule-block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,cAAc,CAAC;AAEpD,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzF,OAAO,K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AI,CAAC;gBAE5B,KAAK,EAAE,kBAAkB;IAa5C,sCAAsC;IACtC,IAAW,eAAe,IAAI,MAAM,CAEnC;IAED,IAAW,WAAW,IAAI,OAAO,CAEhC;IAED,IAAW,QAAQ,IAAI,OAAO,CAE7B;CACF;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,kBAAkB,KACxB,MAAM,CAAC,kBAAkB,EAAE,aAAa,CAmB1C,CAAC"}
|
|
@@ -84,6 +84,8 @@ export declare const ScheduleBlockDtoSchema: z.ZodObject<{
|
|
|
84
84
|
differentTimes?: boolean | undefined;
|
|
85
85
|
weekdayTimesJson?: string | null | undefined;
|
|
86
86
|
}>>>;
|
|
87
|
+
/** Set when the block came from a booking; absent on one the person made themselves. */
|
|
88
|
+
sourceMeetingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
89
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
88
90
|
id: z.ZodString;
|
|
89
91
|
ownerUserId: z.ZodString;
|
|
@@ -127,6 +129,8 @@ export declare const ScheduleBlockDtoSchema: z.ZodObject<{
|
|
|
127
129
|
differentTimes?: boolean | undefined;
|
|
128
130
|
weekdayTimesJson?: string | null | undefined;
|
|
129
131
|
}>>>;
|
|
132
|
+
/** Set when the block came from a booking; absent on one the person made themselves. */
|
|
133
|
+
sourceMeetingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
134
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
131
135
|
id: z.ZodString;
|
|
132
136
|
ownerUserId: z.ZodString;
|
|
@@ -170,6 +174,8 @@ export declare const ScheduleBlockDtoSchema: z.ZodObject<{
|
|
|
170
174
|
differentTimes?: boolean | undefined;
|
|
171
175
|
weekdayTimesJson?: string | null | undefined;
|
|
172
176
|
}>>>;
|
|
177
|
+
/** Set when the block came from a booking; absent on one the person made themselves. */
|
|
178
|
+
sourceMeetingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
173
179
|
}, z.ZodTypeAny, "passthrough">>;
|
|
174
180
|
export type ScheduleBlockDto = z.infer<typeof ScheduleBlockDtoSchema>;
|
|
175
181
|
export declare const ScheduleBlockListSchema: z.ZodArray<z.ZodObject<{
|
|
@@ -215,6 +221,8 @@ export declare const ScheduleBlockListSchema: z.ZodArray<z.ZodObject<{
|
|
|
215
221
|
differentTimes?: boolean | undefined;
|
|
216
222
|
weekdayTimesJson?: string | null | undefined;
|
|
217
223
|
}>>>;
|
|
224
|
+
/** Set when the block came from a booking; absent on one the person made themselves. */
|
|
225
|
+
sourceMeetingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
226
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
219
227
|
id: z.ZodString;
|
|
220
228
|
ownerUserId: z.ZodString;
|
|
@@ -258,6 +266,8 @@ export declare const ScheduleBlockListSchema: z.ZodArray<z.ZodObject<{
|
|
|
258
266
|
differentTimes?: boolean | undefined;
|
|
259
267
|
weekdayTimesJson?: string | null | undefined;
|
|
260
268
|
}>>>;
|
|
269
|
+
/** Set when the block came from a booking; absent on one the person made themselves. */
|
|
270
|
+
sourceMeetingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
261
271
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
262
272
|
id: z.ZodString;
|
|
263
273
|
ownerUserId: z.ZodString;
|
|
@@ -301,6 +311,8 @@ export declare const ScheduleBlockListSchema: z.ZodArray<z.ZodObject<{
|
|
|
301
311
|
differentTimes?: boolean | undefined;
|
|
302
312
|
weekdayTimesJson?: string | null | undefined;
|
|
303
313
|
}>>>;
|
|
314
|
+
/** Set when the block came from a booking; absent on one the person made themselves. */
|
|
315
|
+
sourceMeetingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
316
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
305
317
|
export declare const TimeRangeDtoSchema: z.ZodObject<{
|
|
306
318
|
from: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-dtos.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/schedule/infrastructure/dto/schedule-dtos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAEH,6FAA6F;AAC7F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,kGAAkG;AAClG,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"schedule-dtos.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/schedule/infrastructure/dto/schedule-dtos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAEH,6FAA6F;AAC7F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,kGAAkG;AAClG,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAW/B,wFAAwF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAxF,wFAAwF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAxF,wFAAwF;;gCAG5E,CAAC;AAEjB,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,uBAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,+FAA+F;AAC/F,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;EASvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-mappers.d.ts","sourceRoot":"","sources":["../../../../../../src/features/schedule/infrastructure/schedule-mappers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,qBAAqB,EAGrB,UAAU,EAGV,kBAAkB,EAElB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAuB,MAAM,WAAW,CAAC;AAC/D,OAAO,KAAK,EAEV,wBAAwB,EACxB,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AA6E7B,eAAO,MAAM,YAAY,GAAI,KAAK,aAAa,KAAG,UA2BjD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,KAAK,gBAAgB,KAAG,
|
|
1
|
+
{"version":3,"file":"schedule-mappers.d.ts","sourceRoot":"","sources":["../../../../../../src/features/schedule/infrastructure/schedule-mappers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,qBAAqB,EAGrB,UAAU,EAGV,kBAAkB,EAElB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAuB,MAAM,WAA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AY,EAAY,MAAM,OAAO,CAAC;AAUpD,OAAO,EAAE,KAAK,gBAAgB,EAA4B,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"BlockEditor.d.ts","sourceRoot":"","sources":["../../../../../../src/features/schedule/presentation/BlockEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAY,MAAM,OAAO,CAAC;AAUpD,OAAO,EAAE,KAAK,gBAAgB,EAA4B,MAAM,eAAe,CAAC;AAmMhF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,qFAAqF;AACrF,eAAO,MAAM,WAAW,GAAI,+BAIzB,gBAAgB,KAAG,YAgFrB,CAAC;AACF,eAAe,WAAW,CAAC"}
|