@wix/auto_sdk_portfolio_project-items 1.0.52 → 1.0.53
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/build/cjs/index.d.ts +10 -10
- package/build/cjs/index.js +124 -124
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +181 -181
- package/build/cjs/index.typings.js +116 -116
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +175 -175
- package/build/cjs/meta.js +111 -111
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +10 -10
- package/build/es/index.mjs +124 -124
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +181 -181
- package/build/es/index.typings.mjs +116 -116
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +175 -175
- package/build/es/meta.mjs +111 -111
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +10 -10
- package/build/internal/cjs/index.typings.d.ts +181 -181
- package/build/internal/cjs/meta.d.ts +217 -217
- package/build/internal/es/index.d.mts +10 -10
- package/build/internal/es/index.typings.d.mts +181 -181
- package/build/internal/es/meta.d.mts +217 -217
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateProjectItemRequest as CreateProjectItemRequest$1, CreateProjectItemResponse as CreateProjectItemResponse$1, BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequest$1, BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponse$1, GetProjectItemRequest as GetProjectItemRequest$1, GetProjectItemResponse as GetProjectItemResponse$1, ListProjectItemsRequest as ListProjectItemsRequest$1, ListProjectItemsResponse as ListProjectItemsResponse$1, UpdateProjectItemRequest as UpdateProjectItemRequest$1, UpdateProjectItemResponse as UpdateProjectItemResponse$1, BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequest$1, BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponse$1, DeleteProjectItemRequest as DeleteProjectItemRequest$1, DeleteProjectItemResponse as DeleteProjectItemResponse$1, BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequest$1, BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponse$1, DuplicateProjectItemsRequest as DuplicateProjectItemsRequest$1, DuplicateProjectItemsResponse as DuplicateProjectItemsResponse$1
|
|
1
|
+
import { GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponse$1, CreateProjectItemRequest as CreateProjectItemRequest$1, CreateProjectItemResponse as CreateProjectItemResponse$1, BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequest$1, BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponse$1, GetProjectItemRequest as GetProjectItemRequest$1, GetProjectItemResponse as GetProjectItemResponse$1, ListProjectItemsRequest as ListProjectItemsRequest$1, ListProjectItemsResponse as ListProjectItemsResponse$1, UpdateProjectItemRequest as UpdateProjectItemRequest$1, UpdateProjectItemResponse as UpdateProjectItemResponse$1, BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequest$1, BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponse$1, DeleteProjectItemRequest as DeleteProjectItemRequest$1, DeleteProjectItemResponse as DeleteProjectItemResponse$1, BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequest$1, BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponse$1, DuplicateProjectItemsRequest as DuplicateProjectItemsRequest$1, DuplicateProjectItemsResponse as DuplicateProjectItemsResponse$1 } from './index.typings.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Item extends ItemMetadataOneOf {
|
|
@@ -211,6 +211,179 @@ interface Link {
|
|
|
211
211
|
*/
|
|
212
212
|
target?: string | null;
|
|
213
213
|
}
|
|
214
|
+
interface GenerateTokenForProjectItemsRequest {
|
|
215
|
+
/**
|
|
216
|
+
* Media ids of requested project items
|
|
217
|
+
* @minSize 1
|
|
218
|
+
* @maxLength 100
|
|
219
|
+
*/
|
|
220
|
+
mediaIds: string[];
|
|
221
|
+
}
|
|
222
|
+
interface GenerateTokenForProjectItemsResponse {
|
|
223
|
+
/** Generated media tokens for project items */
|
|
224
|
+
mediaTokens?: ProjectItemMediaToken[];
|
|
225
|
+
}
|
|
226
|
+
interface ProjectItemMediaToken {
|
|
227
|
+
/** Media id of project item */
|
|
228
|
+
mediaId?: string;
|
|
229
|
+
/** Generated media token for project item */
|
|
230
|
+
mediaToken?: string;
|
|
231
|
+
}
|
|
232
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
233
|
+
createdEvent?: EntityCreatedEvent;
|
|
234
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
235
|
+
deletedEvent?: EntityDeletedEvent;
|
|
236
|
+
actionEvent?: ActionEvent;
|
|
237
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
238
|
+
id?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
241
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
242
|
+
*/
|
|
243
|
+
entityFqdn?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
246
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
247
|
+
*/
|
|
248
|
+
slug?: string;
|
|
249
|
+
/** ID of the entity associated with the event. */
|
|
250
|
+
entityId?: string;
|
|
251
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
252
|
+
eventTime?: Date | null;
|
|
253
|
+
/**
|
|
254
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
255
|
+
* (for example, GDPR).
|
|
256
|
+
*/
|
|
257
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
258
|
+
/** If present, indicates the action that triggered the event. */
|
|
259
|
+
originatedFrom?: string | null;
|
|
260
|
+
/**
|
|
261
|
+
* 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.
|
|
262
|
+
* 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.
|
|
263
|
+
*/
|
|
264
|
+
entityEventSequence?: string | null;
|
|
265
|
+
}
|
|
266
|
+
/** @oneof */
|
|
267
|
+
interface DomainEventBodyOneOf {
|
|
268
|
+
createdEvent?: EntityCreatedEvent;
|
|
269
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
270
|
+
deletedEvent?: EntityDeletedEvent;
|
|
271
|
+
actionEvent?: ActionEvent;
|
|
272
|
+
}
|
|
273
|
+
interface EntityCreatedEvent {
|
|
274
|
+
entityAsJson?: string;
|
|
275
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
276
|
+
restoreInfo?: RestoreInfo;
|
|
277
|
+
}
|
|
278
|
+
interface RestoreInfo {
|
|
279
|
+
deletedDate?: Date | null;
|
|
280
|
+
}
|
|
281
|
+
interface EntityUpdatedEvent {
|
|
282
|
+
/**
|
|
283
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
284
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
285
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
286
|
+
*/
|
|
287
|
+
currentEntityAsJson?: string;
|
|
288
|
+
}
|
|
289
|
+
interface EntityDeletedEvent {
|
|
290
|
+
/** Entity that was deleted. */
|
|
291
|
+
deletedEntityAsJson?: string | null;
|
|
292
|
+
}
|
|
293
|
+
interface ActionEvent {
|
|
294
|
+
bodyAsJson?: string;
|
|
295
|
+
}
|
|
296
|
+
interface MessageEnvelope {
|
|
297
|
+
/**
|
|
298
|
+
* App instance ID.
|
|
299
|
+
* @format GUID
|
|
300
|
+
*/
|
|
301
|
+
instanceId?: string | null;
|
|
302
|
+
/**
|
|
303
|
+
* Event type.
|
|
304
|
+
* @maxLength 150
|
|
305
|
+
*/
|
|
306
|
+
eventType?: string;
|
|
307
|
+
/** The identification type and identity data. */
|
|
308
|
+
identity?: IdentificationData;
|
|
309
|
+
/** Stringify payload. */
|
|
310
|
+
data?: string;
|
|
311
|
+
/** Details related to the account */
|
|
312
|
+
accountInfo?: AccountInfo;
|
|
313
|
+
}
|
|
314
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
315
|
+
/**
|
|
316
|
+
* ID of a site visitor that has not logged in to the site.
|
|
317
|
+
* @format GUID
|
|
318
|
+
*/
|
|
319
|
+
anonymousVisitorId?: string;
|
|
320
|
+
/**
|
|
321
|
+
* ID of a site visitor that has logged in to the site.
|
|
322
|
+
* @format GUID
|
|
323
|
+
*/
|
|
324
|
+
memberId?: string;
|
|
325
|
+
/**
|
|
326
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
327
|
+
* @format GUID
|
|
328
|
+
*/
|
|
329
|
+
wixUserId?: string;
|
|
330
|
+
/**
|
|
331
|
+
* ID of an app.
|
|
332
|
+
* @format GUID
|
|
333
|
+
*/
|
|
334
|
+
appId?: string;
|
|
335
|
+
/** @readonly */
|
|
336
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
337
|
+
}
|
|
338
|
+
/** @oneof */
|
|
339
|
+
interface IdentificationDataIdOneOf {
|
|
340
|
+
/**
|
|
341
|
+
* ID of a site visitor that has not logged in to the site.
|
|
342
|
+
* @format GUID
|
|
343
|
+
*/
|
|
344
|
+
anonymousVisitorId?: string;
|
|
345
|
+
/**
|
|
346
|
+
* ID of a site visitor that has logged in to the site.
|
|
347
|
+
* @format GUID
|
|
348
|
+
*/
|
|
349
|
+
memberId?: string;
|
|
350
|
+
/**
|
|
351
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
352
|
+
* @format GUID
|
|
353
|
+
*/
|
|
354
|
+
wixUserId?: string;
|
|
355
|
+
/**
|
|
356
|
+
* ID of an app.
|
|
357
|
+
* @format GUID
|
|
358
|
+
*/
|
|
359
|
+
appId?: string;
|
|
360
|
+
}
|
|
361
|
+
declare enum WebhookIdentityType {
|
|
362
|
+
UNKNOWN = "UNKNOWN",
|
|
363
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
364
|
+
MEMBER = "MEMBER",
|
|
365
|
+
WIX_USER = "WIX_USER",
|
|
366
|
+
APP = "APP"
|
|
367
|
+
}
|
|
368
|
+
/** @enumType */
|
|
369
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
370
|
+
interface AccountInfo {
|
|
371
|
+
/**
|
|
372
|
+
* ID of the Wix account associated with the event.
|
|
373
|
+
* @format GUID
|
|
374
|
+
*/
|
|
375
|
+
accountId?: string | null;
|
|
376
|
+
/**
|
|
377
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
378
|
+
* @format GUID
|
|
379
|
+
*/
|
|
380
|
+
parentAccountId?: string | null;
|
|
381
|
+
/**
|
|
382
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
383
|
+
* @format GUID
|
|
384
|
+
*/
|
|
385
|
+
siteId?: string | null;
|
|
386
|
+
}
|
|
214
387
|
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
215
388
|
/**
|
|
216
389
|
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
@@ -676,70 +849,6 @@ interface CreateProjectGalleryResponse {
|
|
|
676
849
|
*/
|
|
677
850
|
galleryId?: string;
|
|
678
851
|
}
|
|
679
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
680
|
-
createdEvent?: EntityCreatedEvent;
|
|
681
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
682
|
-
deletedEvent?: EntityDeletedEvent;
|
|
683
|
-
actionEvent?: ActionEvent;
|
|
684
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
685
|
-
id?: string;
|
|
686
|
-
/**
|
|
687
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
688
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
689
|
-
*/
|
|
690
|
-
entityFqdn?: string;
|
|
691
|
-
/**
|
|
692
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
693
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
694
|
-
*/
|
|
695
|
-
slug?: string;
|
|
696
|
-
/** ID of the entity associated with the event. */
|
|
697
|
-
entityId?: string;
|
|
698
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
699
|
-
eventTime?: Date | null;
|
|
700
|
-
/**
|
|
701
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
702
|
-
* (for example, GDPR).
|
|
703
|
-
*/
|
|
704
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
705
|
-
/** If present, indicates the action that triggered the event. */
|
|
706
|
-
originatedFrom?: string | null;
|
|
707
|
-
/**
|
|
708
|
-
* 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.
|
|
709
|
-
* 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.
|
|
710
|
-
*/
|
|
711
|
-
entityEventSequence?: string | null;
|
|
712
|
-
}
|
|
713
|
-
/** @oneof */
|
|
714
|
-
interface DomainEventBodyOneOf {
|
|
715
|
-
createdEvent?: EntityCreatedEvent;
|
|
716
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
717
|
-
deletedEvent?: EntityDeletedEvent;
|
|
718
|
-
actionEvent?: ActionEvent;
|
|
719
|
-
}
|
|
720
|
-
interface EntityCreatedEvent {
|
|
721
|
-
entityAsJson?: string;
|
|
722
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
723
|
-
restoreInfo?: RestoreInfo;
|
|
724
|
-
}
|
|
725
|
-
interface RestoreInfo {
|
|
726
|
-
deletedDate?: Date | null;
|
|
727
|
-
}
|
|
728
|
-
interface EntityUpdatedEvent {
|
|
729
|
-
/**
|
|
730
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
731
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
732
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
733
|
-
*/
|
|
734
|
-
currentEntityAsJson?: string;
|
|
735
|
-
}
|
|
736
|
-
interface EntityDeletedEvent {
|
|
737
|
-
/** Entity that was deleted. */
|
|
738
|
-
deletedEntityAsJson?: string | null;
|
|
739
|
-
}
|
|
740
|
-
interface ActionEvent {
|
|
741
|
-
bodyAsJson?: string;
|
|
742
|
-
}
|
|
743
852
|
interface Empty {
|
|
744
853
|
}
|
|
745
854
|
interface DeletedProjectRestored {
|
|
@@ -778,115 +887,6 @@ interface CloneFromOriginRequest {
|
|
|
778
887
|
}
|
|
779
888
|
interface CloneFromOriginResponse {
|
|
780
889
|
}
|
|
781
|
-
interface MessageEnvelope {
|
|
782
|
-
/**
|
|
783
|
-
* App instance ID.
|
|
784
|
-
* @format GUID
|
|
785
|
-
*/
|
|
786
|
-
instanceId?: string | null;
|
|
787
|
-
/**
|
|
788
|
-
* Event type.
|
|
789
|
-
* @maxLength 150
|
|
790
|
-
*/
|
|
791
|
-
eventType?: string;
|
|
792
|
-
/** The identification type and identity data. */
|
|
793
|
-
identity?: IdentificationData;
|
|
794
|
-
/** Stringify payload. */
|
|
795
|
-
data?: string;
|
|
796
|
-
/** Details related to the account */
|
|
797
|
-
accountInfo?: AccountInfo;
|
|
798
|
-
}
|
|
799
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
800
|
-
/**
|
|
801
|
-
* ID of a site visitor that has not logged in to the site.
|
|
802
|
-
* @format GUID
|
|
803
|
-
*/
|
|
804
|
-
anonymousVisitorId?: string;
|
|
805
|
-
/**
|
|
806
|
-
* ID of a site visitor that has logged in to the site.
|
|
807
|
-
* @format GUID
|
|
808
|
-
*/
|
|
809
|
-
memberId?: string;
|
|
810
|
-
/**
|
|
811
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
812
|
-
* @format GUID
|
|
813
|
-
*/
|
|
814
|
-
wixUserId?: string;
|
|
815
|
-
/**
|
|
816
|
-
* ID of an app.
|
|
817
|
-
* @format GUID
|
|
818
|
-
*/
|
|
819
|
-
appId?: string;
|
|
820
|
-
/** @readonly */
|
|
821
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
822
|
-
}
|
|
823
|
-
/** @oneof */
|
|
824
|
-
interface IdentificationDataIdOneOf {
|
|
825
|
-
/**
|
|
826
|
-
* ID of a site visitor that has not logged in to the site.
|
|
827
|
-
* @format GUID
|
|
828
|
-
*/
|
|
829
|
-
anonymousVisitorId?: string;
|
|
830
|
-
/**
|
|
831
|
-
* ID of a site visitor that has logged in to the site.
|
|
832
|
-
* @format GUID
|
|
833
|
-
*/
|
|
834
|
-
memberId?: string;
|
|
835
|
-
/**
|
|
836
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
837
|
-
* @format GUID
|
|
838
|
-
*/
|
|
839
|
-
wixUserId?: string;
|
|
840
|
-
/**
|
|
841
|
-
* ID of an app.
|
|
842
|
-
* @format GUID
|
|
843
|
-
*/
|
|
844
|
-
appId?: string;
|
|
845
|
-
}
|
|
846
|
-
declare enum WebhookIdentityType {
|
|
847
|
-
UNKNOWN = "UNKNOWN",
|
|
848
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
849
|
-
MEMBER = "MEMBER",
|
|
850
|
-
WIX_USER = "WIX_USER",
|
|
851
|
-
APP = "APP"
|
|
852
|
-
}
|
|
853
|
-
/** @enumType */
|
|
854
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
855
|
-
interface AccountInfo {
|
|
856
|
-
/**
|
|
857
|
-
* ID of the Wix account associated with the event.
|
|
858
|
-
* @format GUID
|
|
859
|
-
*/
|
|
860
|
-
accountId?: string | null;
|
|
861
|
-
/**
|
|
862
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
863
|
-
* @format GUID
|
|
864
|
-
*/
|
|
865
|
-
parentAccountId?: string | null;
|
|
866
|
-
/**
|
|
867
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
868
|
-
* @format GUID
|
|
869
|
-
*/
|
|
870
|
-
siteId?: string | null;
|
|
871
|
-
}
|
|
872
|
-
interface GenerateTokenForProjectItemsRequest {
|
|
873
|
-
/**
|
|
874
|
-
* Media ids of requested project items
|
|
875
|
-
* @minSize 1
|
|
876
|
-
* @maxLength 100
|
|
877
|
-
*/
|
|
878
|
-
mediaIds: string[];
|
|
879
|
-
}
|
|
880
|
-
interface GenerateTokenForProjectItemsResponse {
|
|
881
|
-
/** Generated media tokens for project items */
|
|
882
|
-
mediaTokens?: ProjectItemMediaToken[];
|
|
883
|
-
}
|
|
884
|
-
interface ProjectItemMediaToken {
|
|
885
|
-
/** Media id of project item */
|
|
886
|
-
mediaId?: string;
|
|
887
|
-
/** Generated media token for project item */
|
|
888
|
-
mediaToken?: string;
|
|
889
|
-
}
|
|
890
890
|
|
|
891
891
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
892
892
|
getUrl: (context: any) => string;
|
|
@@ -898,6 +898,7 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
898
898
|
__responseType: Q;
|
|
899
899
|
__originalResponseType: R;
|
|
900
900
|
};
|
|
901
|
+
declare function generateTokenForProjectItems(): __PublicMethodMetaInfo<'POST', {}, GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsRequest, GenerateTokenForProjectItemsResponse$1, GenerateTokenForProjectItemsResponse>;
|
|
901
902
|
declare function createProjectItem(): __PublicMethodMetaInfo<'POST', {}, CreateProjectItemRequest$1, CreateProjectItemRequest, CreateProjectItemResponse$1, CreateProjectItemResponse>;
|
|
902
903
|
declare function bulkCreateProjectItems(): __PublicMethodMetaInfo<'POST', {}, BulkCreateProjectItemsRequest$1, BulkCreateProjectItemsRequest, BulkCreateProjectItemsResponse$1, BulkCreateProjectItemsResponse>;
|
|
903
904
|
declare function getProjectItem(): __PublicMethodMetaInfo<'GET', {
|
|
@@ -915,6 +916,5 @@ declare function deleteProjectItem(): __PublicMethodMetaInfo<'DELETE', {
|
|
|
915
916
|
}, DeleteProjectItemRequest$1, DeleteProjectItemRequest, DeleteProjectItemResponse$1, DeleteProjectItemResponse>;
|
|
916
917
|
declare function bulkDeleteProjectItems(): __PublicMethodMetaInfo<'DELETE', {}, BulkDeleteProjectItemsRequest$1, BulkDeleteProjectItemsRequest, BulkDeleteProjectItemsResponse$1, BulkDeleteProjectItemsResponse>;
|
|
917
918
|
declare function duplicateProjectItems(): __PublicMethodMetaInfo<'POST', {}, DuplicateProjectItemsRequest$1, DuplicateProjectItemsRequest, DuplicateProjectItemsResponse$1, DuplicateProjectItemsResponse>;
|
|
918
|
-
declare function generateTokenForProjectItems(): __PublicMethodMetaInfo<'POST', {}, GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsRequest, GenerateTokenForProjectItemsResponse$1, GenerateTokenForProjectItemsResponse>;
|
|
919
919
|
|
|
920
920
|
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation as AddressLocationOriginal, type App as AppOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateProjectItemResult as BulkCreateProjectItemResultOriginal, type BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequestOriginal, type BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponseOriginal, type BulkDeleteProjectItemResult as BulkDeleteProjectItemResultOriginal, type BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequestOriginal, type BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponseOriginal, type BulkUpdateProjectItemResult as BulkUpdateProjectItemResultOriginal, type BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequestOriginal, type BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponseOriginal, type CloneFromOriginRequest as CloneFromOriginRequestOriginal, type CloneFromOriginResponse as CloneFromOriginResponseOriginal, type CommonImage as CommonImageOriginal, type CreateProjectGalleryRequest as CreateProjectGalleryRequestOriginal, type CreateProjectGalleryResponse as CreateProjectGalleryResponseOriginal, type CreateProjectItemRequest as CreateProjectItemRequestOriginal, type CreateProjectItemResponse as CreateProjectItemResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type DeleteProjectItemRequest as DeleteProjectItemRequestOriginal, type DeleteProjectItemResponse as DeleteProjectItemResponseOriginal, type DeletedProjectRestored as DeletedProjectRestoredOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DuplicateProjectItemsRequest as DuplicateProjectItemsRequestOriginal, type DuplicateProjectItemsResponse as DuplicateProjectItemsResponseOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type File as FileOriginal, type GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequestOriginal, type GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponseOriginal, type GetProjectItemRequest as GetProjectItemRequestOriginal, type GetProjectItemResponse as GetProjectItemResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, ImageType as ImageTypeOriginal, type ImageTypeWithLiterals as ImageTypeWithLiteralsOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemMetadataOneOf as ItemMetadataOneOfOriginal, type ItemMetadata as ItemMetadataOriginal, type Item as ItemOriginal, type Link as LinkOriginal, type ListProjectItemsRequest as ListProjectItemsRequestOriginal, type ListProjectItemsResponse as ListProjectItemsResponseOriginal, type MaskedItem as MaskedItemOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type Point as PointOriginal, type ProjectItemMediaToken as ProjectItemMediaTokenOriginal, type QueryProjectItemsRequest as QueryProjectItemsRequestOriginal, type QueryProjectItemsResponse as QueryProjectItemsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type Tags as TagsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UnsharpMasking as UnsharpMaskingOriginal, type UpdateProjectItemRequest as UpdateProjectItemRequestOriginal, type UpdateProjectItemResponse as UpdateProjectItemResponseOriginal, type Video as VideoOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateProjectItems, bulkDeleteProjectItems, bulkUpdateProjectItems, createProjectItem, deleteProjectItem, duplicateProjectItems, generateTokenForProjectItems, getProjectItem, listProjectItems, updateProjectItem };
|
package/build/es/meta.mjs
CHANGED
|
@@ -73,71 +73,6 @@ var TRANSFORM_PATHS_9 = [
|
|
|
73
73
|
{ path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
74
74
|
{ path: "items.item.video.videoInfo.posters.urlExpirationDate" }
|
|
75
75
|
];
|
|
76
|
-
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
77
|
-
const domainToMappings = {
|
|
78
|
-
"manage._base_domain_": [
|
|
79
|
-
{
|
|
80
|
-
srcPath: "/_api/portfolio-app-service",
|
|
81
|
-
destPath: "/api"
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
"editor._base_domain_": [
|
|
85
|
-
{
|
|
86
|
-
srcPath: "/_api/portfolio-app-service",
|
|
87
|
-
destPath: "/api"
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"blocks._base_domain_": [
|
|
91
|
-
{
|
|
92
|
-
srcPath: "/_api/portfolio-app-service",
|
|
93
|
-
destPath: "/api"
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"create.editorx": [
|
|
97
|
-
{
|
|
98
|
-
srcPath: "/_api/portfolio-app-service",
|
|
99
|
-
destPath: "/api"
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
_: [
|
|
103
|
-
{
|
|
104
|
-
srcPath: "/_api/portfolio-app-service",
|
|
105
|
-
destPath: "/api"
|
|
106
|
-
}
|
|
107
|
-
],
|
|
108
|
-
"api._api_base_domain_": [
|
|
109
|
-
{
|
|
110
|
-
srcPath: "/_api/portfolio-app-service",
|
|
111
|
-
destPath: "/api"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"www.wixapis.com": [
|
|
115
|
-
{
|
|
116
|
-
srcPath: "/portfolio/v1/settings",
|
|
117
|
-
destPath: "/api/v1/portfolio/settings"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
121
|
-
destPath: "/api/v1/portfolio/settings"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
125
|
-
destPath: "/api/v1/portfolio/project/items/media"
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
"*.dev.wix-code.com": [
|
|
129
|
-
{
|
|
130
|
-
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
131
|
-
destPath: "/api/v1/portfolio/settings"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
135
|
-
destPath: "/api/v1/portfolio/project/items/media"
|
|
136
|
-
}
|
|
137
|
-
]
|
|
138
|
-
};
|
|
139
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
140
|
-
}
|
|
141
76
|
function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
|
|
142
77
|
const domainToMappings = {
|
|
143
78
|
"manage._base_domain_": [
|
|
@@ -257,7 +192,93 @@ function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
|
|
|
257
192
|
};
|
|
258
193
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
259
194
|
}
|
|
195
|
+
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
196
|
+
const domainToMappings = {
|
|
197
|
+
"manage._base_domain_": [
|
|
198
|
+
{
|
|
199
|
+
srcPath: "/_api/portfolio-app-service",
|
|
200
|
+
destPath: "/api"
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"editor._base_domain_": [
|
|
204
|
+
{
|
|
205
|
+
srcPath: "/_api/portfolio-app-service",
|
|
206
|
+
destPath: "/api"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"blocks._base_domain_": [
|
|
210
|
+
{
|
|
211
|
+
srcPath: "/_api/portfolio-app-service",
|
|
212
|
+
destPath: "/api"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"create.editorx": [
|
|
216
|
+
{
|
|
217
|
+
srcPath: "/_api/portfolio-app-service",
|
|
218
|
+
destPath: "/api"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
_: [
|
|
222
|
+
{
|
|
223
|
+
srcPath: "/_api/portfolio-app-service",
|
|
224
|
+
destPath: "/api"
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"api._api_base_domain_": [
|
|
228
|
+
{
|
|
229
|
+
srcPath: "/_api/portfolio-app-service",
|
|
230
|
+
destPath: "/api"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"www.wixapis.com": [
|
|
234
|
+
{
|
|
235
|
+
srcPath: "/portfolio/v1/settings",
|
|
236
|
+
destPath: "/api/v1/portfolio/settings"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
240
|
+
destPath: "/api/v1/portfolio/settings"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
244
|
+
destPath: "/api/v1/portfolio/project/items/media"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"*.dev.wix-code.com": [
|
|
248
|
+
{
|
|
249
|
+
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
250
|
+
destPath: "/api/v1/portfolio/settings"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
254
|
+
destPath: "/api/v1/portfolio/project/items/media"
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
};
|
|
258
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
259
|
+
}
|
|
260
260
|
var PACKAGE_NAME = "@wix/auto_sdk_portfolio_project-items";
|
|
261
|
+
function generateTokenForProjectItems(payload) {
|
|
262
|
+
function __generateTokenForProjectItems({ host }) {
|
|
263
|
+
const metadata = {
|
|
264
|
+
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
265
|
+
method: "POST",
|
|
266
|
+
methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
|
|
267
|
+
packageName: PACKAGE_NAME,
|
|
268
|
+
migrationOptions: {
|
|
269
|
+
optInTransformResponse: true
|
|
270
|
+
},
|
|
271
|
+
url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
|
|
272
|
+
protoPath: "/api/v1/portfolio/project/items/media",
|
|
273
|
+
data: payload,
|
|
274
|
+
host
|
|
275
|
+
}),
|
|
276
|
+
data: payload
|
|
277
|
+
};
|
|
278
|
+
return metadata;
|
|
279
|
+
}
|
|
280
|
+
return __generateTokenForProjectItems;
|
|
281
|
+
}
|
|
261
282
|
function createProjectItem(payload) {
|
|
262
283
|
function __createProjectItem({ host }) {
|
|
263
284
|
const serializedData = transformPaths(payload, [
|
|
@@ -566,27 +587,6 @@ function duplicateProjectItems(payload) {
|
|
|
566
587
|
}
|
|
567
588
|
return __duplicateProjectItems;
|
|
568
589
|
}
|
|
569
|
-
function generateTokenForProjectItems(payload) {
|
|
570
|
-
function __generateTokenForProjectItems({ host }) {
|
|
571
|
-
const metadata = {
|
|
572
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
573
|
-
method: "POST",
|
|
574
|
-
methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
|
|
575
|
-
packageName: PACKAGE_NAME,
|
|
576
|
-
migrationOptions: {
|
|
577
|
-
optInTransformResponse: true
|
|
578
|
-
},
|
|
579
|
-
url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
|
|
580
|
-
protoPath: "/api/v1/portfolio/project/items/media",
|
|
581
|
-
data: payload,
|
|
582
|
-
host
|
|
583
|
-
}),
|
|
584
|
-
data: payload
|
|
585
|
-
};
|
|
586
|
-
return metadata;
|
|
587
|
-
}
|
|
588
|
-
return __generateTokenForProjectItems;
|
|
589
|
-
}
|
|
590
590
|
|
|
591
591
|
// src/portfolio-project-items-v1-project-item-project-items.types.ts
|
|
592
592
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
@@ -601,11 +601,6 @@ var ImageType = /* @__PURE__ */ ((ImageType2) => {
|
|
|
601
601
|
ImageType2["EXTERNAL"] = "EXTERNAL";
|
|
602
602
|
return ImageType2;
|
|
603
603
|
})(ImageType || {});
|
|
604
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
605
|
-
SortOrder2["ASC"] = "ASC";
|
|
606
|
-
SortOrder2["DESC"] = "DESC";
|
|
607
|
-
return SortOrder2;
|
|
608
|
-
})(SortOrder || {});
|
|
609
604
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
610
605
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
611
606
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -614,8 +609,33 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
614
609
|
WebhookIdentityType2["APP"] = "APP";
|
|
615
610
|
return WebhookIdentityType2;
|
|
616
611
|
})(WebhookIdentityType || {});
|
|
612
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
613
|
+
SortOrder2["ASC"] = "ASC";
|
|
614
|
+
SortOrder2["DESC"] = "DESC";
|
|
615
|
+
return SortOrder2;
|
|
616
|
+
})(SortOrder || {});
|
|
617
617
|
|
|
618
618
|
// src/portfolio-project-items-v1-project-item-project-items.meta.ts
|
|
619
|
+
function generateTokenForProjectItems2() {
|
|
620
|
+
const payload = {};
|
|
621
|
+
const getRequestOptions = generateTokenForProjectItems(
|
|
622
|
+
payload
|
|
623
|
+
);
|
|
624
|
+
const getUrl = (context) => {
|
|
625
|
+
const { url } = getRequestOptions(context);
|
|
626
|
+
return url;
|
|
627
|
+
};
|
|
628
|
+
return {
|
|
629
|
+
getUrl,
|
|
630
|
+
httpMethod: "POST",
|
|
631
|
+
path: "/api/v1/portfolio/project/items/media",
|
|
632
|
+
pathParams: {},
|
|
633
|
+
__requestType: null,
|
|
634
|
+
__originalRequestType: null,
|
|
635
|
+
__responseType: null,
|
|
636
|
+
__originalResponseType: null
|
|
637
|
+
};
|
|
638
|
+
}
|
|
619
639
|
function createProjectItem2() {
|
|
620
640
|
const payload = {};
|
|
621
641
|
const getRequestOptions = createProjectItem(payload);
|
|
@@ -786,26 +806,6 @@ function duplicateProjectItems2() {
|
|
|
786
806
|
__originalResponseType: null
|
|
787
807
|
};
|
|
788
808
|
}
|
|
789
|
-
function generateTokenForProjectItems2() {
|
|
790
|
-
const payload = {};
|
|
791
|
-
const getRequestOptions = generateTokenForProjectItems(
|
|
792
|
-
payload
|
|
793
|
-
);
|
|
794
|
-
const getUrl = (context) => {
|
|
795
|
-
const { url } = getRequestOptions(context);
|
|
796
|
-
return url;
|
|
797
|
-
};
|
|
798
|
-
return {
|
|
799
|
-
getUrl,
|
|
800
|
-
httpMethod: "POST",
|
|
801
|
-
path: "/api/v1/portfolio/project/items/media",
|
|
802
|
-
pathParams: {},
|
|
803
|
-
__requestType: null,
|
|
804
|
-
__originalRequestType: null,
|
|
805
|
-
__responseType: null,
|
|
806
|
-
__originalResponseType: null
|
|
807
|
-
};
|
|
808
|
-
}
|
|
809
809
|
export {
|
|
810
810
|
ImageType as ImageTypeOriginal,
|
|
811
811
|
SortOrder as SortOrderOriginal,
|