@blazeo.com/calendar-client 1.0.10 → 1.0.11
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.ts +1 -0
- package/dist/index.js +8 -0
- package/dist/index.mjs +8 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export const ParticipantModel: {
|
|
|
85
85
|
update(payload: object): Promise<unknown>;
|
|
86
86
|
save(payload: object): Promise<unknown>;
|
|
87
87
|
sendEmail(participantId: string): Promise<unknown>;
|
|
88
|
+
migrate(participantId: string, userId: string): Promise<unknown>;
|
|
88
89
|
create(snapshot: object, options?: { env?: object }): unknown;
|
|
89
90
|
};
|
|
90
91
|
export const OpeningHourModel: { create(snapshot: object, options?: { env?: object }): unknown };
|
package/dist/index.js
CHANGED
|
@@ -1260,6 +1260,10 @@ var ParticipantModel = import_mobx_state_tree11.types.model("Participant", {
|
|
|
1260
1260
|
async sendEmail() {
|
|
1261
1261
|
return reqGet("/participant/sendemail", { participant_id: self.participantId });
|
|
1262
1262
|
},
|
|
1263
|
+
/** POST participant/migrate – migrate this participant id to user id */
|
|
1264
|
+
async migrate(userId) {
|
|
1265
|
+
return reqPost("/participant/migrate", {}, { participant_id: self.participantId, user_id: userId });
|
|
1266
|
+
},
|
|
1263
1267
|
/** GET participant/calendars/get – calendars for this participant (paged) */
|
|
1264
1268
|
async getCalendars(opts = {}) {
|
|
1265
1269
|
var _a, _b, _c, _d;
|
|
@@ -1403,6 +1407,10 @@ ParticipantModel.sendEmail = async (participantId) => {
|
|
|
1403
1407
|
const { reqGet } = createRequestHelpersFromEnv(getConfig());
|
|
1404
1408
|
return reqGet("/participant/sendemail", { participant_id: participantId });
|
|
1405
1409
|
};
|
|
1410
|
+
ParticipantModel.migrate = async (participantId, userId) => {
|
|
1411
|
+
const { reqPost } = createRequestHelpersFromEnv(getConfig());
|
|
1412
|
+
return reqPost("/participant/migrate", {}, { participant_id: participantId, user_id: userId });
|
|
1413
|
+
};
|
|
1406
1414
|
ParticipantModel.getCalendars = async (participantId, opts = {}) => {
|
|
1407
1415
|
var _a, _b, _c, _d;
|
|
1408
1416
|
const { reqGet } = createRequestHelpersFromEnv(getConfig());
|
package/dist/index.mjs
CHANGED
|
@@ -1207,6 +1207,10 @@ var ParticipantModel = types11.model("Participant", {
|
|
|
1207
1207
|
async sendEmail() {
|
|
1208
1208
|
return reqGet("/participant/sendemail", { participant_id: self.participantId });
|
|
1209
1209
|
},
|
|
1210
|
+
/** POST participant/migrate – migrate this participant id to user id */
|
|
1211
|
+
async migrate(userId) {
|
|
1212
|
+
return reqPost("/participant/migrate", {}, { participant_id: self.participantId, user_id: userId });
|
|
1213
|
+
},
|
|
1210
1214
|
/** GET participant/calendars/get – calendars for this participant (paged) */
|
|
1211
1215
|
async getCalendars(opts = {}) {
|
|
1212
1216
|
var _a, _b, _c, _d;
|
|
@@ -1350,6 +1354,10 @@ ParticipantModel.sendEmail = async (participantId) => {
|
|
|
1350
1354
|
const { reqGet } = createRequestHelpersFromEnv(getConfig());
|
|
1351
1355
|
return reqGet("/participant/sendemail", { participant_id: participantId });
|
|
1352
1356
|
};
|
|
1357
|
+
ParticipantModel.migrate = async (participantId, userId) => {
|
|
1358
|
+
const { reqPost } = createRequestHelpersFromEnv(getConfig());
|
|
1359
|
+
return reqPost("/participant/migrate", {}, { participant_id: participantId, user_id: userId });
|
|
1360
|
+
};
|
|
1353
1361
|
ParticipantModel.getCalendars = async (participantId, opts = {}) => {
|
|
1354
1362
|
var _a, _b, _c, _d;
|
|
1355
1363
|
const { reqGet } = createRequestHelpersFromEnv(getConfig());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blazeo.com/calendar-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Blazeo Calendar / Appointment API client with MobX State Tree models",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/blazeo-com/calendar-client#readme",
|
|
28
28
|
"publishConfig": {
|
|
29
|
-
"access": "
|
|
29
|
+
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"mobx": "^6.10.0",
|