@wix/auto_sdk_calendar_events 1.0.76 → 1.0.78

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.
Files changed (46) hide show
  1. package/build/cjs/index.js +38 -8
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +175 -172
  4. package/build/cjs/index.typings.js +38 -8
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +173 -173
  7. package/build/cjs/meta.js +38 -8
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.d.ts +3062 -0
  10. package/build/cjs/schemas.js +5439 -0
  11. package/build/cjs/schemas.js.map +1 -0
  12. package/build/es/index.mjs +38 -8
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +175 -172
  15. package/build/es/index.typings.mjs +38 -8
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +173 -173
  18. package/build/es/meta.mjs +38 -8
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/schemas.d.mts +3062 -0
  21. package/build/es/schemas.mjs +5377 -0
  22. package/build/es/schemas.mjs.map +1 -0
  23. package/build/internal/cjs/index.js +38 -8
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +175 -172
  26. package/build/internal/cjs/index.typings.js +38 -8
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +173 -173
  29. package/build/internal/cjs/meta.js +38 -8
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/internal/cjs/schemas.d.ts +3062 -0
  32. package/build/internal/cjs/schemas.js +5439 -0
  33. package/build/internal/cjs/schemas.js.map +1 -0
  34. package/build/internal/es/index.mjs +38 -8
  35. package/build/internal/es/index.mjs.map +1 -1
  36. package/build/internal/es/index.typings.d.mts +175 -172
  37. package/build/internal/es/index.typings.mjs +38 -8
  38. package/build/internal/es/index.typings.mjs.map +1 -1
  39. package/build/internal/es/meta.d.mts +173 -173
  40. package/build/internal/es/meta.mjs +38 -8
  41. package/build/internal/es/meta.mjs.map +1 -1
  42. package/build/internal/es/schemas.d.mts +3062 -0
  43. package/build/internal/es/schemas.mjs +5377 -0
  44. package/build/internal/es/schemas.mjs.map +1 -0
  45. package/package.json +11 -4
  46. package/schemas/package.json +3 -0
@@ -708,179 +708,6 @@ interface EventUpdatedWithMetadata {
708
708
  */
709
709
  participantNotification?: ParticipantNotification;
710
710
  }
711
- interface UpdateScheduleWithFixedBusinessResourceIdRequest {
712
- /** @format GUID */
713
- metaSiteId?: string;
714
- /** @format GUID */
715
- currentBusinessResourceId?: string;
716
- migrateBusinessConferenceId?: boolean;
717
- }
718
- interface UpdateScheduleWithFixedBusinessResourceIdResponse {
719
- }
720
- interface UpdateEventsWithFixedBusinessResourceIdRequest {
721
- /** @format GUID */
722
- metaSiteId?: string;
723
- /** @format GUID */
724
- currentBusinessResourceId?: string;
725
- migrateBusinessConferenceId?: boolean;
726
- }
727
- interface UpdateEventsWithFixedBusinessResourceIdResponse {
728
- }
729
- interface DomainEvent extends DomainEventBodyOneOf {
730
- createdEvent?: EntityCreatedEvent;
731
- updatedEvent?: EntityUpdatedEvent;
732
- deletedEvent?: EntityDeletedEvent;
733
- actionEvent?: ActionEvent;
734
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
735
- id?: string;
736
- /**
737
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
738
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
739
- */
740
- entityFqdn?: string;
741
- /**
742
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
743
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
744
- */
745
- slug?: string;
746
- /** ID of the entity associated with the event. */
747
- entityId?: string;
748
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
749
- eventTime?: Date | null;
750
- /**
751
- * Whether the event was triggered as a result of a privacy regulation application
752
- * (for example, GDPR).
753
- */
754
- triggeredByAnonymizeRequest?: boolean | null;
755
- /** If present, indicates the action that triggered the event. */
756
- originatedFrom?: string | null;
757
- /**
758
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
759
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
760
- */
761
- entityEventSequence?: string | null;
762
- }
763
- /** @oneof */
764
- interface DomainEventBodyOneOf {
765
- createdEvent?: EntityCreatedEvent;
766
- updatedEvent?: EntityUpdatedEvent;
767
- deletedEvent?: EntityDeletedEvent;
768
- actionEvent?: ActionEvent;
769
- }
770
- interface EntityCreatedEvent {
771
- entityAsJson?: string;
772
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
773
- restoreInfo?: RestoreInfo;
774
- }
775
- interface RestoreInfo {
776
- deletedDate?: Date | null;
777
- }
778
- interface EntityUpdatedEvent {
779
- /**
780
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
781
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
782
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
783
- */
784
- currentEntityAsJson?: string;
785
- }
786
- interface EntityDeletedEvent {
787
- /** Entity that was deleted. */
788
- deletedEntityAsJson?: string | null;
789
- }
790
- interface ActionEvent {
791
- bodyAsJson?: string;
792
- }
793
- interface MessageEnvelope {
794
- /**
795
- * App instance ID.
796
- * @format GUID
797
- */
798
- instanceId?: string | null;
799
- /**
800
- * Event type.
801
- * @maxLength 150
802
- */
803
- eventType?: string;
804
- /** The identification type and identity data. */
805
- identity?: IdentificationData;
806
- /** Stringify payload. */
807
- data?: string;
808
- /** Details related to the account */
809
- accountInfo?: AccountInfo;
810
- }
811
- interface IdentificationData extends IdentificationDataIdOneOf {
812
- /**
813
- * ID of a site visitor that has not logged in to the site.
814
- * @format GUID
815
- */
816
- anonymousVisitorId?: string;
817
- /**
818
- * ID of a site visitor that has logged in to the site.
819
- * @format GUID
820
- */
821
- memberId?: string;
822
- /**
823
- * ID of a Wix user (site owner, contributor, etc.).
824
- * @format GUID
825
- */
826
- wixUserId?: string;
827
- /**
828
- * ID of an app.
829
- * @format GUID
830
- */
831
- appId?: string;
832
- /** @readonly */
833
- identityType?: WebhookIdentityTypeWithLiterals;
834
- }
835
- /** @oneof */
836
- interface IdentificationDataIdOneOf {
837
- /**
838
- * ID of a site visitor that has not logged in to the site.
839
- * @format GUID
840
- */
841
- anonymousVisitorId?: string;
842
- /**
843
- * ID of a site visitor that has logged in to the site.
844
- * @format GUID
845
- */
846
- memberId?: string;
847
- /**
848
- * ID of a Wix user (site owner, contributor, etc.).
849
- * @format GUID
850
- */
851
- wixUserId?: string;
852
- /**
853
- * ID of an app.
854
- * @format GUID
855
- */
856
- appId?: string;
857
- }
858
- declare enum WebhookIdentityType {
859
- UNKNOWN = "UNKNOWN",
860
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
861
- MEMBER = "MEMBER",
862
- WIX_USER = "WIX_USER",
863
- APP = "APP"
864
- }
865
- /** @enumType */
866
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
867
- interface AccountInfo {
868
- /**
869
- * ID of the Wix account associated with the event.
870
- * @format GUID
871
- */
872
- accountId?: string | null;
873
- /**
874
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
875
- * @format GUID
876
- */
877
- parentAccountId?: string | null;
878
- /**
879
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
880
- * @format GUID
881
- */
882
- siteId?: string | null;
883
- }
884
711
  interface ListEventsByContactIdRequest {
885
712
  /**
886
713
  * ID of the [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)
@@ -1348,6 +1175,179 @@ interface SiteCloned {
1348
1175
  }
1349
1176
  interface Empty {
1350
1177
  }
1178
+ interface DomainEvent extends DomainEventBodyOneOf {
1179
+ createdEvent?: EntityCreatedEvent;
1180
+ updatedEvent?: EntityUpdatedEvent;
1181
+ deletedEvent?: EntityDeletedEvent;
1182
+ actionEvent?: ActionEvent;
1183
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1184
+ id?: string;
1185
+ /**
1186
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1187
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1188
+ */
1189
+ entityFqdn?: string;
1190
+ /**
1191
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
1192
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1193
+ */
1194
+ slug?: string;
1195
+ /** ID of the entity associated with the event. */
1196
+ entityId?: string;
1197
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1198
+ eventTime?: Date | null;
1199
+ /**
1200
+ * Whether the event was triggered as a result of a privacy regulation application
1201
+ * (for example, GDPR).
1202
+ */
1203
+ triggeredByAnonymizeRequest?: boolean | null;
1204
+ /** If present, indicates the action that triggered the event. */
1205
+ originatedFrom?: string | null;
1206
+ /**
1207
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
1208
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
1209
+ */
1210
+ entityEventSequence?: string | null;
1211
+ }
1212
+ /** @oneof */
1213
+ interface DomainEventBodyOneOf {
1214
+ createdEvent?: EntityCreatedEvent;
1215
+ updatedEvent?: EntityUpdatedEvent;
1216
+ deletedEvent?: EntityDeletedEvent;
1217
+ actionEvent?: ActionEvent;
1218
+ }
1219
+ interface EntityCreatedEvent {
1220
+ entityAsJson?: string;
1221
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1222
+ restoreInfo?: RestoreInfo;
1223
+ }
1224
+ interface RestoreInfo {
1225
+ deletedDate?: Date | null;
1226
+ }
1227
+ interface EntityUpdatedEvent {
1228
+ /**
1229
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1230
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1231
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1232
+ */
1233
+ currentEntityAsJson?: string;
1234
+ }
1235
+ interface EntityDeletedEvent {
1236
+ /** Entity that was deleted. */
1237
+ deletedEntityAsJson?: string | null;
1238
+ }
1239
+ interface ActionEvent {
1240
+ bodyAsJson?: string;
1241
+ }
1242
+ interface MessageEnvelope {
1243
+ /**
1244
+ * App instance ID.
1245
+ * @format GUID
1246
+ */
1247
+ instanceId?: string | null;
1248
+ /**
1249
+ * Event type.
1250
+ * @maxLength 150
1251
+ */
1252
+ eventType?: string;
1253
+ /** The identification type and identity data. */
1254
+ identity?: IdentificationData;
1255
+ /** Stringify payload. */
1256
+ data?: string;
1257
+ /** Details related to the account */
1258
+ accountInfo?: AccountInfo;
1259
+ }
1260
+ interface IdentificationData extends IdentificationDataIdOneOf {
1261
+ /**
1262
+ * ID of a site visitor that has not logged in to the site.
1263
+ * @format GUID
1264
+ */
1265
+ anonymousVisitorId?: string;
1266
+ /**
1267
+ * ID of a site visitor that has logged in to the site.
1268
+ * @format GUID
1269
+ */
1270
+ memberId?: string;
1271
+ /**
1272
+ * ID of a Wix user (site owner, contributor, etc.).
1273
+ * @format GUID
1274
+ */
1275
+ wixUserId?: string;
1276
+ /**
1277
+ * ID of an app.
1278
+ * @format GUID
1279
+ */
1280
+ appId?: string;
1281
+ /** @readonly */
1282
+ identityType?: WebhookIdentityTypeWithLiterals;
1283
+ }
1284
+ /** @oneof */
1285
+ interface IdentificationDataIdOneOf {
1286
+ /**
1287
+ * ID of a site visitor that has not logged in to the site.
1288
+ * @format GUID
1289
+ */
1290
+ anonymousVisitorId?: string;
1291
+ /**
1292
+ * ID of a site visitor that has logged in to the site.
1293
+ * @format GUID
1294
+ */
1295
+ memberId?: string;
1296
+ /**
1297
+ * ID of a Wix user (site owner, contributor, etc.).
1298
+ * @format GUID
1299
+ */
1300
+ wixUserId?: string;
1301
+ /**
1302
+ * ID of an app.
1303
+ * @format GUID
1304
+ */
1305
+ appId?: string;
1306
+ }
1307
+ declare enum WebhookIdentityType {
1308
+ UNKNOWN = "UNKNOWN",
1309
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1310
+ MEMBER = "MEMBER",
1311
+ WIX_USER = "WIX_USER",
1312
+ APP = "APP"
1313
+ }
1314
+ /** @enumType */
1315
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1316
+ interface AccountInfo {
1317
+ /**
1318
+ * ID of the Wix account associated with the event.
1319
+ * @format GUID
1320
+ */
1321
+ accountId?: string | null;
1322
+ /**
1323
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
1324
+ * @format GUID
1325
+ */
1326
+ parentAccountId?: string | null;
1327
+ /**
1328
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
1329
+ * @format GUID
1330
+ */
1331
+ siteId?: string | null;
1332
+ }
1333
+ interface UpdateScheduleWithFixedBusinessResourceIdRequest {
1334
+ /** @format GUID */
1335
+ metaSiteId?: string;
1336
+ /** @format GUID */
1337
+ currentBusinessResourceId?: string;
1338
+ migrateBusinessConferenceId?: boolean;
1339
+ }
1340
+ interface UpdateScheduleWithFixedBusinessResourceIdResponse {
1341
+ }
1342
+ interface UpdateEventsWithFixedBusinessResourceIdRequest {
1343
+ /** @format GUID */
1344
+ metaSiteId?: string;
1345
+ /** @format GUID */
1346
+ currentBusinessResourceId?: string;
1347
+ migrateBusinessConferenceId?: boolean;
1348
+ }
1349
+ interface UpdateEventsWithFixedBusinessResourceIdResponse {
1350
+ }
1351
1351
  interface GetEventRequest {
1352
1352
  /**
1353
1353
  * ID of the event to retrieve.
package/build/cjs/meta.js CHANGED
@@ -112,6 +112,36 @@ function resolveWixCalendarEventsV3EventsServiceUrl(opts) {
112
112
  srcPath: "/_api/calendar/v3/bulk/events",
113
113
  destPath: "/v3/bulk/events"
114
114
  }
115
+ ],
116
+ "editor._base_domain_": [
117
+ {
118
+ srcPath: "/_api/calendar/v3/events",
119
+ destPath: "/v3/events"
120
+ },
121
+ {
122
+ srcPath: "/_api/calendar/v3/bulk/events",
123
+ destPath: "/v3/bulk/events"
124
+ }
125
+ ],
126
+ "blocks._base_domain_": [
127
+ {
128
+ srcPath: "/_api/calendar/v3/events",
129
+ destPath: "/v3/events"
130
+ },
131
+ {
132
+ srcPath: "/_api/calendar/v3/bulk/events",
133
+ destPath: "/v3/bulk/events"
134
+ }
135
+ ],
136
+ "create.editorx": [
137
+ {
138
+ srcPath: "/_api/calendar/v3/events",
139
+ destPath: "/v3/events"
140
+ },
141
+ {
142
+ srcPath: "/_api/calendar/v3/bulk/events",
143
+ destPath: "/v3/bulk/events"
144
+ }
115
145
  ]
116
146
  };
117
147
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
@@ -810,14 +840,6 @@ var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
810
840
  IdentityType2["WIX_USER"] = "WIX_USER";
811
841
  return IdentityType2;
812
842
  })(IdentityType || {});
813
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
814
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
815
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
816
- WebhookIdentityType2["MEMBER"] = "MEMBER";
817
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
818
- WebhookIdentityType2["APP"] = "APP";
819
- return WebhookIdentityType2;
820
- })(WebhookIdentityType || {});
821
843
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
822
844
  SortOrder2["ASC"] = "ASC";
823
845
  SortOrder2["DESC"] = "DESC";
@@ -845,6 +867,14 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
845
867
  ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
846
868
  return ResolutionMethod2;
847
869
  })(ResolutionMethod || {});
870
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
871
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
872
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
873
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
874
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
875
+ WebhookIdentityType2["APP"] = "APP";
876
+ return WebhookIdentityType2;
877
+ })(WebhookIdentityType || {});
848
878
  var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
849
879
  RequestedFields2["PI_FIELDS"] = "PI_FIELDS";
850
880
  RequestedFields2["OWN_PI_FIELDS"] = "OWN_PI_FIELDS";