@wix/portfolio 1.0.63 → 1.0.65
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/context.d.ts +1 -0
- package/build/cjs/context.js +2 -1
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +2 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +1 -0
- package/build/es/context.js +1 -0
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +1 -0
- package/build/es/meta.js.map +1 -1
- package/package.json +5 -4
- package/type-bundles/context.bundle.d.ts +209 -41
- package/type-bundles/index.bundle.d.ts +550 -263
- package/type-bundles/meta.bundle.d.ts +411 -17
package/build/cjs/context.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections/context';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings/context';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items/context';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects/context';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections/context';
|
package/build/cjs/context.js
CHANGED
|
@@ -23,8 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.projectInCollections = exports.projects = exports.projectItems = exports.collections = void 0;
|
|
26
|
+
exports.projectInCollections = exports.projects = exports.projectItems = exports.portfolioSettings = exports.collections = void 0;
|
|
27
27
|
exports.collections = __importStar(require("@wix/portfolio_collections/context"));
|
|
28
|
+
exports.portfolioSettings = __importStar(require("@wix/portfolio_portfolio-settings/context"));
|
|
28
29
|
exports.projectItems = __importStar(require("@wix/portfolio_project-items/context"));
|
|
29
30
|
exports.projects = __importStar(require("@wix/portfolio_projects/context"));
|
|
30
31
|
exports.projectInCollections = __importStar(require("@wix/portfolio_project-in-collections/context"));
|
package/build/cjs/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAkE;AAClE,qFAAqE;AACrE,4EAA4D;AAC5D,sGAAsF"}
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAkE;AAClE,+FAA+E;AAC/E,qFAAqE;AACrE,4EAA4D;AAC5D,sGAAsF"}
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections';
|
package/build/cjs/index.js
CHANGED
|
@@ -23,8 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.projectInCollections = exports.projects = exports.projectItems = exports.collections = void 0;
|
|
26
|
+
exports.projectInCollections = exports.projects = exports.projectItems = exports.portfolioSettings = exports.collections = void 0;
|
|
27
27
|
exports.collections = __importStar(require("@wix/portfolio_collections"));
|
|
28
|
+
exports.portfolioSettings = __importStar(require("@wix/portfolio_portfolio-settings"));
|
|
28
29
|
exports.projectItems = __importStar(require("@wix/portfolio_project-items"));
|
|
29
30
|
exports.projects = __importStar(require("@wix/portfolio_projects"));
|
|
30
31
|
exports.projectInCollections = __importStar(require("@wix/portfolio_project-in-collections"));
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0EAA0D;AAC1D,6EAA6D;AAC7D,oEAAoD;AACpD,8FAA8E"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0EAA0D;AAC1D,uFAAuE;AACvE,6EAA6D;AAC7D,oEAAoD;AACpD,8FAA8E"}
|
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections/meta';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings/meta';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items/meta';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects/meta';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections/meta';
|
package/build/cjs/meta.js
CHANGED
|
@@ -23,8 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.projectInCollections = exports.projects = exports.projectItems = exports.collections = void 0;
|
|
26
|
+
exports.projectInCollections = exports.projects = exports.projectItems = exports.portfolioSettings = exports.collections = void 0;
|
|
27
27
|
exports.collections = __importStar(require("@wix/portfolio_collections/meta"));
|
|
28
|
+
exports.portfolioSettings = __importStar(require("@wix/portfolio_portfolio-settings/meta"));
|
|
28
29
|
exports.projectItems = __importStar(require("@wix/portfolio_project-items/meta"));
|
|
29
30
|
exports.projects = __importStar(require("@wix/portfolio_projects/meta"));
|
|
30
31
|
exports.projectInCollections = __importStar(require("@wix/portfolio_project-in-collections/meta"));
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+EAA+D;AAC/D,kFAAkE;AAClE,yEAAyD;AACzD,mGAAmF"}
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+EAA+D;AAC/D,4FAA4E;AAC5E,kFAAkE;AAClE,yEAAyD;AACzD,mGAAmF"}
|
package/build/es/context.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections/context';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings/context';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items/context';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects/context';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections/context';
|
package/build/es/context.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections/context';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings/context';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items/context';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects/context';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections/context';
|
package/build/es/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,YAAY,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,QAAQ,MAAM,iCAAiC,CAAC;AAC5D,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAC"}
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,iBAAiB,MAAM,2CAA2C,CAAC;AAC/E,OAAO,KAAK,YAAY,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,QAAQ,MAAM,iCAAiC,CAAC;AAC5D,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAC"}
|
package/build/es/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections';
|
package/build/es/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections';
|
package/build/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,oBAAoB,MAAM,uCAAuC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,iBAAiB,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,oBAAoB,MAAM,uCAAuC,CAAC"}
|
package/build/es/meta.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections/meta';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings/meta';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items/meta';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects/meta';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections/meta';
|
package/build/es/meta.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as collections from '@wix/portfolio_collections/meta';
|
|
2
|
+
export * as portfolioSettings from '@wix/portfolio_portfolio-settings/meta';
|
|
2
3
|
export * as projectItems from '@wix/portfolio_project-items/meta';
|
|
3
4
|
export * as projects from '@wix/portfolio_projects/meta';
|
|
4
5
|
export * as projectInCollections from '@wix/portfolio_project-in-collections/meta';
|
package/build/es/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,iCAAiC,CAAC;AAC/D,OAAO,KAAK,YAAY,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAC"}
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,iCAAiC,CAAC;AAC/D,OAAO,KAAK,iBAAiB,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,YAAY,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/portfolio",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.65",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@wix/portfolio_collections": "1.0.13",
|
|
22
|
+
"@wix/portfolio_portfolio-settings": "1.0.0",
|
|
22
23
|
"@wix/portfolio_project-in-collections": "1.0.13",
|
|
23
|
-
"@wix/portfolio_project-items": "1.0.
|
|
24
|
-
"@wix/portfolio_projects": "1.0.
|
|
24
|
+
"@wix/portfolio_project-items": "1.0.17",
|
|
25
|
+
"@wix/portfolio_projects": "1.0.16"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
|
|
@@ -46,5 +47,5 @@
|
|
|
46
47
|
"fqdn": ""
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
|
-
"falconPackageHash": "
|
|
50
|
+
"falconPackageHash": "bd0dedd8b16f11d1b6202d007393dc2d4650677ec9fb499f8a859e17"
|
|
50
51
|
}
|
|
@@ -509,17 +509,84 @@ declare const onCollectionCreated: BuildEventDefinition<typeof onCollectionCreat
|
|
|
509
509
|
declare const onCollectionUpdated: BuildEventDefinition<typeof onCollectionUpdated$1>;
|
|
510
510
|
declare const onCollectionDeleted: BuildEventDefinition<typeof onCollectionDeleted$1>;
|
|
511
511
|
|
|
512
|
-
declare const context$
|
|
513
|
-
declare const context$
|
|
514
|
-
declare const context$
|
|
515
|
-
declare const context$
|
|
516
|
-
declare const context$
|
|
517
|
-
declare const context$
|
|
518
|
-
declare const context$
|
|
519
|
-
declare const context$
|
|
520
|
-
declare const context$
|
|
512
|
+
declare const context$4_createCollection: typeof createCollection;
|
|
513
|
+
declare const context$4_deleteCollection: typeof deleteCollection;
|
|
514
|
+
declare const context$4_getCollection: typeof getCollection;
|
|
515
|
+
declare const context$4_listCollections: typeof listCollections;
|
|
516
|
+
declare const context$4_onCollectionCreated: typeof onCollectionCreated;
|
|
517
|
+
declare const context$4_onCollectionDeleted: typeof onCollectionDeleted;
|
|
518
|
+
declare const context$4_onCollectionUpdated: typeof onCollectionUpdated;
|
|
519
|
+
declare const context$4_queryCollections: typeof queryCollections;
|
|
520
|
+
declare const context$4_updateCollection: typeof updateCollection;
|
|
521
|
+
declare namespace context$4 {
|
|
522
|
+
export { context$4_createCollection as createCollection, context$4_deleteCollection as deleteCollection, context$4_getCollection as getCollection, context$4_listCollections as listCollections, context$4_onCollectionCreated as onCollectionCreated, context$4_onCollectionDeleted as onCollectionDeleted, context$4_onCollectionUpdated as onCollectionUpdated, context$4_queryCollections as queryCollections, context$4_updateCollection as updateCollection };
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
interface PortfolioSettings {
|
|
526
|
+
revision?: string | null;
|
|
527
|
+
projectItemSettings?: ProjectItemSettings;
|
|
528
|
+
mediaSettings?: MediaSettings;
|
|
529
|
+
siteMenuSettings?: SiteMenuSettings;
|
|
530
|
+
}
|
|
531
|
+
interface ProjectItemSettings {
|
|
532
|
+
addItemDirection?: AddItemDirection;
|
|
533
|
+
defaultItemName?: DefaultItemName;
|
|
534
|
+
}
|
|
535
|
+
declare enum AddItemDirection {
|
|
536
|
+
GALLERY_START = "GALLERY_START",
|
|
537
|
+
GALLERY_END = "GALLERY_END"
|
|
538
|
+
}
|
|
539
|
+
declare enum DefaultItemName {
|
|
540
|
+
FILE_NAME = "FILE_NAME",
|
|
541
|
+
EMPTY = "EMPTY"
|
|
542
|
+
}
|
|
543
|
+
interface MediaSettings {
|
|
544
|
+
folderId?: string | null;
|
|
545
|
+
}
|
|
546
|
+
interface SiteMenuSettings {
|
|
547
|
+
autoUpdateMenu?: boolean | null;
|
|
548
|
+
}
|
|
549
|
+
interface GetPortfolioSettingsResponse {
|
|
550
|
+
portfolioSettings?: PortfolioSettings;
|
|
551
|
+
}
|
|
552
|
+
interface UpdatePortfolioSettingsResponse {
|
|
553
|
+
updatedPortfolioSettings?: PortfolioSettings;
|
|
554
|
+
}
|
|
555
|
+
interface GetPortfolioSettingsResponseNonNullableFields {
|
|
556
|
+
portfolioSettings?: {
|
|
557
|
+
projectItemSettings?: {
|
|
558
|
+
addItemDirection: AddItemDirection;
|
|
559
|
+
defaultItemName: DefaultItemName;
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
interface UpdatePortfolioSettingsResponseNonNullableFields {
|
|
564
|
+
updatedPortfolioSettings?: {
|
|
565
|
+
projectItemSettings?: {
|
|
566
|
+
addItemDirection: AddItemDirection;
|
|
567
|
+
defaultItemName: DefaultItemName;
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
declare function createPortfolioSettings$1(httpClient: HttpClient): (portfolioSettings: PortfolioSettings) => Promise<PortfolioSettings & {
|
|
573
|
+
projectItemSettings?: {
|
|
574
|
+
addItemDirection: AddItemDirection;
|
|
575
|
+
defaultItemName: DefaultItemName;
|
|
576
|
+
} | undefined;
|
|
577
|
+
}>;
|
|
578
|
+
declare function getPortfolioSettings$1(httpClient: HttpClient): () => Promise<GetPortfolioSettingsResponse & GetPortfolioSettingsResponseNonNullableFields>;
|
|
579
|
+
declare function updatePortfolioSettings$1(httpClient: HttpClient): (portfolioSettings: PortfolioSettings) => Promise<UpdatePortfolioSettingsResponse & UpdatePortfolioSettingsResponseNonNullableFields>;
|
|
580
|
+
|
|
581
|
+
declare const createPortfolioSettings: BuildRESTFunction<typeof createPortfolioSettings$1>;
|
|
582
|
+
declare const getPortfolioSettings: BuildRESTFunction<typeof getPortfolioSettings$1>;
|
|
583
|
+
declare const updatePortfolioSettings: BuildRESTFunction<typeof updatePortfolioSettings$1>;
|
|
584
|
+
|
|
585
|
+
declare const context$3_createPortfolioSettings: typeof createPortfolioSettings;
|
|
586
|
+
declare const context$3_getPortfolioSettings: typeof getPortfolioSettings;
|
|
587
|
+
declare const context$3_updatePortfolioSettings: typeof updatePortfolioSettings;
|
|
521
588
|
declare namespace context$3 {
|
|
522
|
-
export { context$
|
|
589
|
+
export { context$3_createPortfolioSettings as createPortfolioSettings, context$3_getPortfolioSettings as getPortfolioSettings, context$3_updatePortfolioSettings as updatePortfolioSettings };
|
|
523
590
|
}
|
|
524
591
|
|
|
525
592
|
/** ProjectItem is the main entity of ProjectItemsService */
|
|
@@ -612,6 +679,45 @@ interface Link {
|
|
|
612
679
|
*/
|
|
613
680
|
target?: string | null;
|
|
614
681
|
}
|
|
682
|
+
interface GenerateTokenForProjectItemsResponse {
|
|
683
|
+
mediaTokens?: ProjectItemMediaToken[];
|
|
684
|
+
}
|
|
685
|
+
interface ProjectItemMediaToken {
|
|
686
|
+
/** Media id of project item */
|
|
687
|
+
mediaId?: string;
|
|
688
|
+
/** Generated media token for project item */
|
|
689
|
+
mediaToken?: string;
|
|
690
|
+
}
|
|
691
|
+
interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
|
|
692
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
693
|
+
anonymousVisitorId?: string;
|
|
694
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
695
|
+
memberId?: string;
|
|
696
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
697
|
+
wixUserId?: string;
|
|
698
|
+
/** ID of an app. */
|
|
699
|
+
appId?: string;
|
|
700
|
+
/** @readonly */
|
|
701
|
+
identityType?: WebhookIdentityType$2;
|
|
702
|
+
}
|
|
703
|
+
/** @oneof */
|
|
704
|
+
interface IdentificationDataIdOneOf$2 {
|
|
705
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
706
|
+
anonymousVisitorId?: string;
|
|
707
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
708
|
+
memberId?: string;
|
|
709
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
710
|
+
wixUserId?: string;
|
|
711
|
+
/** ID of an app. */
|
|
712
|
+
appId?: string;
|
|
713
|
+
}
|
|
714
|
+
declare enum WebhookIdentityType$2 {
|
|
715
|
+
UNKNOWN = "UNKNOWN",
|
|
716
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
717
|
+
MEMBER = "MEMBER",
|
|
718
|
+
WIX_USER = "WIX_USER",
|
|
719
|
+
APP = "APP"
|
|
720
|
+
}
|
|
615
721
|
interface BulkCreateProjectItemsResponse {
|
|
616
722
|
/** Array with all created items results. */
|
|
617
723
|
results?: BulkCreateProjectItemResult[];
|
|
@@ -716,35 +822,17 @@ interface BulkDeleteProjectItemResult {
|
|
|
716
822
|
/** Id of the ProjectItem */
|
|
717
823
|
itemId?: string;
|
|
718
824
|
}
|
|
719
|
-
interface
|
|
720
|
-
/**
|
|
721
|
-
|
|
722
|
-
/**
|
|
723
|
-
|
|
724
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
725
|
-
wixUserId?: string;
|
|
726
|
-
/** ID of an app. */
|
|
727
|
-
appId?: string;
|
|
728
|
-
/** @readonly */
|
|
729
|
-
identityType?: WebhookIdentityType$2;
|
|
730
|
-
}
|
|
731
|
-
/** @oneof */
|
|
732
|
-
interface IdentificationDataIdOneOf$2 {
|
|
733
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
734
|
-
anonymousVisitorId?: string;
|
|
735
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
736
|
-
memberId?: string;
|
|
737
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
738
|
-
wixUserId?: string;
|
|
739
|
-
/** ID of an app. */
|
|
740
|
-
appId?: string;
|
|
825
|
+
interface DuplicateProjectItemsResponse {
|
|
826
|
+
/** Id of target project */
|
|
827
|
+
projectId?: string;
|
|
828
|
+
/** Result metadata */
|
|
829
|
+
bulkActionMetadata?: BulkActionMetadata$1;
|
|
741
830
|
}
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
APP = "APP"
|
|
831
|
+
interface GenerateTokenForProjectItemsResponseNonNullableFields {
|
|
832
|
+
mediaTokens: {
|
|
833
|
+
mediaId: string;
|
|
834
|
+
mediaToken: string;
|
|
835
|
+
}[];
|
|
748
836
|
}
|
|
749
837
|
interface BulkCreateProjectItemsResponseNonNullableFields {
|
|
750
838
|
results: {
|
|
@@ -843,6 +931,14 @@ interface BulkDeleteProjectItemsResponseNonNullableFields {
|
|
|
843
931
|
undetailedFailures: number;
|
|
844
932
|
};
|
|
845
933
|
}
|
|
934
|
+
interface DuplicateProjectItemsResponseNonNullableFields {
|
|
935
|
+
projectId: string;
|
|
936
|
+
bulkActionMetadata?: {
|
|
937
|
+
totalSuccesses: number;
|
|
938
|
+
totalFailures: number;
|
|
939
|
+
undetailedFailures: number;
|
|
940
|
+
};
|
|
941
|
+
}
|
|
846
942
|
interface BaseEventMetadata$2 {
|
|
847
943
|
/** App instance ID. */
|
|
848
944
|
instanceId?: string | null;
|
|
@@ -965,7 +1061,12 @@ interface BulkDeleteProjectItemsOptions {
|
|
|
965
1061
|
/** Ids of the items to be deleted */
|
|
966
1062
|
itemIds: string[];
|
|
967
1063
|
}
|
|
1064
|
+
interface DuplicateProjectItemsOptions {
|
|
1065
|
+
/** Target project ID to duplicate to (same instance as request) */
|
|
1066
|
+
targetProjectId: string;
|
|
1067
|
+
}
|
|
968
1068
|
|
|
1069
|
+
declare function generateTokenForProjectItems$1(httpClient: HttpClient): (mediaIds: string[]) => Promise<GenerateTokenForProjectItemsResponse & GenerateTokenForProjectItemsResponseNonNullableFields>;
|
|
969
1070
|
declare function createProjectItem$1(httpClient: HttpClient): (item: Item) => Promise<Item & {
|
|
970
1071
|
image?: {
|
|
971
1072
|
imageInfo: string;
|
|
@@ -1010,10 +1111,12 @@ declare function updateProjectItem$1(httpClient: HttpClient): (_id: string | nul
|
|
|
1010
1111
|
declare function bulkUpdateProjectItems$1(httpClient: HttpClient): (options?: BulkUpdateProjectItemsOptions) => Promise<BulkUpdateProjectItemsResponse & BulkUpdateProjectItemsResponseNonNullableFields>;
|
|
1011
1112
|
declare function deleteProjectItem$1(httpClient: HttpClient): (itemId: string) => Promise<DeleteProjectItemResponse & DeleteProjectItemResponseNonNullableFields>;
|
|
1012
1113
|
declare function bulkDeleteProjectItems$1(httpClient: HttpClient): (options: BulkDeleteProjectItemsOptions) => Promise<BulkDeleteProjectItemsResponse & BulkDeleteProjectItemsResponseNonNullableFields>;
|
|
1114
|
+
declare function duplicateProjectItems$1(httpClient: HttpClient): (originProjectId: string, options: DuplicateProjectItemsOptions) => Promise<DuplicateProjectItemsResponse & DuplicateProjectItemsResponseNonNullableFields>;
|
|
1013
1115
|
declare const onProjectItemCreated$1: EventDefinition<ProjectItemCreatedEnvelope, "wix.portfolio.project_items.v1.project_item_created">;
|
|
1014
1116
|
declare const onProjectItemUpdated$1: EventDefinition<ProjectItemUpdatedEnvelope, "wix.portfolio.project_items.v1.project_item_updated">;
|
|
1015
1117
|
declare const onProjectItemDeleted$1: EventDefinition<ProjectItemDeletedEnvelope, "wix.portfolio.project_items.v1.project_item_deleted">;
|
|
1016
1118
|
|
|
1119
|
+
declare const generateTokenForProjectItems: BuildRESTFunction<typeof generateTokenForProjectItems$1>;
|
|
1017
1120
|
declare const createProjectItem: BuildRESTFunction<typeof createProjectItem$1>;
|
|
1018
1121
|
declare const bulkCreateProjectItems: BuildRESTFunction<typeof bulkCreateProjectItems$1>;
|
|
1019
1122
|
declare const getProjectItem: BuildRESTFunction<typeof getProjectItem$1>;
|
|
@@ -1022,6 +1125,7 @@ declare const updateProjectItem: BuildRESTFunction<typeof updateProjectItem$1>;
|
|
|
1022
1125
|
declare const bulkUpdateProjectItems: BuildRESTFunction<typeof bulkUpdateProjectItems$1>;
|
|
1023
1126
|
declare const deleteProjectItem: BuildRESTFunction<typeof deleteProjectItem$1>;
|
|
1024
1127
|
declare const bulkDeleteProjectItems: BuildRESTFunction<typeof bulkDeleteProjectItems$1>;
|
|
1128
|
+
declare const duplicateProjectItems: BuildRESTFunction<typeof duplicateProjectItems$1>;
|
|
1025
1129
|
declare const onProjectItemCreated: BuildEventDefinition<typeof onProjectItemCreated$1>;
|
|
1026
1130
|
declare const onProjectItemUpdated: BuildEventDefinition<typeof onProjectItemUpdated$1>;
|
|
1027
1131
|
declare const onProjectItemDeleted: BuildEventDefinition<typeof onProjectItemDeleted$1>;
|
|
@@ -1031,6 +1135,8 @@ declare const context$2_bulkDeleteProjectItems: typeof bulkDeleteProjectItems;
|
|
|
1031
1135
|
declare const context$2_bulkUpdateProjectItems: typeof bulkUpdateProjectItems;
|
|
1032
1136
|
declare const context$2_createProjectItem: typeof createProjectItem;
|
|
1033
1137
|
declare const context$2_deleteProjectItem: typeof deleteProjectItem;
|
|
1138
|
+
declare const context$2_duplicateProjectItems: typeof duplicateProjectItems;
|
|
1139
|
+
declare const context$2_generateTokenForProjectItems: typeof generateTokenForProjectItems;
|
|
1034
1140
|
declare const context$2_getProjectItem: typeof getProjectItem;
|
|
1035
1141
|
declare const context$2_listProjectItems: typeof listProjectItems;
|
|
1036
1142
|
declare const context$2_onProjectItemCreated: typeof onProjectItemCreated;
|
|
@@ -1038,7 +1144,7 @@ declare const context$2_onProjectItemDeleted: typeof onProjectItemDeleted;
|
|
|
1038
1144
|
declare const context$2_onProjectItemUpdated: typeof onProjectItemUpdated;
|
|
1039
1145
|
declare const context$2_updateProjectItem: typeof updateProjectItem;
|
|
1040
1146
|
declare namespace context$2 {
|
|
1041
|
-
export { context$2_bulkCreateProjectItems as bulkCreateProjectItems, context$2_bulkDeleteProjectItems as bulkDeleteProjectItems, context$2_bulkUpdateProjectItems as bulkUpdateProjectItems, context$2_createProjectItem as createProjectItem, context$2_deleteProjectItem as deleteProjectItem, context$2_getProjectItem as getProjectItem, context$2_listProjectItems as listProjectItems, context$2_onProjectItemCreated as onProjectItemCreated, context$2_onProjectItemDeleted as onProjectItemDeleted, context$2_onProjectItemUpdated as onProjectItemUpdated, context$2_updateProjectItem as updateProjectItem };
|
|
1147
|
+
export { context$2_bulkCreateProjectItems as bulkCreateProjectItems, context$2_bulkDeleteProjectItems as bulkDeleteProjectItems, context$2_bulkUpdateProjectItems as bulkUpdateProjectItems, context$2_createProjectItem as createProjectItem, context$2_deleteProjectItem as deleteProjectItem, context$2_duplicateProjectItems as duplicateProjectItems, context$2_generateTokenForProjectItems as generateTokenForProjectItems, context$2_getProjectItem as getProjectItem, context$2_listProjectItems as listProjectItems, context$2_onProjectItemCreated as onProjectItemCreated, context$2_onProjectItemDeleted as onProjectItemDeleted, context$2_onProjectItemUpdated as onProjectItemUpdated, context$2_updateProjectItem as updateProjectItem };
|
|
1042
1148
|
}
|
|
1043
1149
|
|
|
1044
1150
|
/** Project is the main entity of ProjectsService */
|
|
@@ -1184,6 +1290,16 @@ interface Settings$1 {
|
|
|
1184
1290
|
/** User-selected keyword terms for a specific page. */
|
|
1185
1291
|
keywords?: Keyword$1[];
|
|
1186
1292
|
}
|
|
1293
|
+
interface GetProjectPageDataResponse {
|
|
1294
|
+
project?: Project$1;
|
|
1295
|
+
previousProject?: ProjectSlug;
|
|
1296
|
+
nextProject?: ProjectSlug;
|
|
1297
|
+
}
|
|
1298
|
+
interface ProjectSlug {
|
|
1299
|
+
/** Project id */
|
|
1300
|
+
projectId?: string;
|
|
1301
|
+
slug?: string;
|
|
1302
|
+
}
|
|
1187
1303
|
interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
|
|
1188
1304
|
/** ID of a site visitor that has not logged in to the site. */
|
|
1189
1305
|
anonymousVisitorId?: string;
|
|
@@ -1358,6 +1474,49 @@ interface QueryProjectWithCollectionInfoResponse {
|
|
|
1358
1474
|
/** Paging metadata */
|
|
1359
1475
|
metadata?: PagingMetadataV2;
|
|
1360
1476
|
}
|
|
1477
|
+
interface GetProjectPageDataResponseNonNullableFields {
|
|
1478
|
+
project?: {
|
|
1479
|
+
coverImage?: {
|
|
1480
|
+
imageInfo: string;
|
|
1481
|
+
focalPoint?: {
|
|
1482
|
+
x: number;
|
|
1483
|
+
y: number;
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
coverVideo?: {
|
|
1487
|
+
videoInfo: string;
|
|
1488
|
+
};
|
|
1489
|
+
collectionIds: string[];
|
|
1490
|
+
details: {
|
|
1491
|
+
text: string;
|
|
1492
|
+
label: string;
|
|
1493
|
+
}[];
|
|
1494
|
+
url: string;
|
|
1495
|
+
seoData?: {
|
|
1496
|
+
tags: {
|
|
1497
|
+
type: string;
|
|
1498
|
+
children: string;
|
|
1499
|
+
custom: boolean;
|
|
1500
|
+
disabled: boolean;
|
|
1501
|
+
}[];
|
|
1502
|
+
settings?: {
|
|
1503
|
+
preventAutoRedirect: boolean;
|
|
1504
|
+
keywords: {
|
|
1505
|
+
term: string;
|
|
1506
|
+
isMain: boolean;
|
|
1507
|
+
}[];
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
previousProject?: {
|
|
1512
|
+
projectId: string;
|
|
1513
|
+
slug: string;
|
|
1514
|
+
};
|
|
1515
|
+
nextProject?: {
|
|
1516
|
+
projectId: string;
|
|
1517
|
+
slug: string;
|
|
1518
|
+
};
|
|
1519
|
+
}
|
|
1361
1520
|
interface ListProjectsResponseNonNullableFields {
|
|
1362
1521
|
projects: {
|
|
1363
1522
|
coverImage?: {
|
|
@@ -1579,6 +1738,12 @@ interface ProjectUpdatedEnvelope {
|
|
|
1579
1738
|
interface ProjectDeletedEnvelope {
|
|
1580
1739
|
metadata: EventMetadata$1;
|
|
1581
1740
|
}
|
|
1741
|
+
interface GetProjectPageDataIdentifiers {
|
|
1742
|
+
/** Slug of the project's current collection */
|
|
1743
|
+
collectionSlug: string;
|
|
1744
|
+
/** Project's slug */
|
|
1745
|
+
projectSlug: string;
|
|
1746
|
+
}
|
|
1582
1747
|
interface GetProjectOptions {
|
|
1583
1748
|
includePageUrl?: boolean | null;
|
|
1584
1749
|
}
|
|
@@ -1733,6 +1898,7 @@ interface QueryProjectsWithCollectionInfoOptions {
|
|
|
1733
1898
|
includePageUrl?: boolean | null;
|
|
1734
1899
|
}
|
|
1735
1900
|
|
|
1901
|
+
declare function getProjectPageData$1(httpClient: HttpClient): (identifiers: GetProjectPageDataIdentifiers) => Promise<GetProjectPageDataResponse & GetProjectPageDataResponseNonNullableFields>;
|
|
1736
1902
|
declare function createProject$1(httpClient: HttpClient): (project: Project$1) => Promise<Project$1 & {
|
|
1737
1903
|
coverImage?: {
|
|
1738
1904
|
imageInfo: string;
|
|
@@ -1842,6 +2008,7 @@ declare const onProjectCreated$1: EventDefinition<ProjectCreatedEnvelope, "wix.p
|
|
|
1842
2008
|
declare const onProjectUpdated$1: EventDefinition<ProjectUpdatedEnvelope, "wix.portfolio.projects.v1.project_updated">;
|
|
1843
2009
|
declare const onProjectDeleted$1: EventDefinition<ProjectDeletedEnvelope, "wix.portfolio.projects.v1.project_deleted">;
|
|
1844
2010
|
|
|
2011
|
+
declare const getProjectPageData: BuildRESTFunction<typeof getProjectPageData$1>;
|
|
1845
2012
|
declare const createProject: BuildRESTFunction<typeof createProject$1>;
|
|
1846
2013
|
declare const getProject: BuildRESTFunction<typeof getProject$1>;
|
|
1847
2014
|
declare const listProjects: BuildRESTFunction<typeof listProjects$1>;
|
|
@@ -1859,6 +2026,7 @@ declare const context$1_bulkUpdateProjects: typeof bulkUpdateProjects;
|
|
|
1859
2026
|
declare const context$1_createProject: typeof createProject;
|
|
1860
2027
|
declare const context$1_deleteProject: typeof deleteProject;
|
|
1861
2028
|
declare const context$1_getProject: typeof getProject;
|
|
2029
|
+
declare const context$1_getProjectPageData: typeof getProjectPageData;
|
|
1862
2030
|
declare const context$1_listProjects: typeof listProjects;
|
|
1863
2031
|
declare const context$1_onProjectCreated: typeof onProjectCreated;
|
|
1864
2032
|
declare const context$1_onProjectDeleted: typeof onProjectDeleted;
|
|
@@ -1867,7 +2035,7 @@ declare const context$1_queryProjects: typeof queryProjects;
|
|
|
1867
2035
|
declare const context$1_queryProjectsWithCollectionInfo: typeof queryProjectsWithCollectionInfo;
|
|
1868
2036
|
declare const context$1_updateProject: typeof updateProject;
|
|
1869
2037
|
declare namespace context$1 {
|
|
1870
|
-
export { context$1_bulkUpdateProjects as bulkUpdateProjects, context$1_createProject as createProject, context$1_deleteProject as deleteProject, context$1_getProject as getProject, context$1_listProjects as listProjects, context$1_onProjectCreated as onProjectCreated, context$1_onProjectDeleted as onProjectDeleted, context$1_onProjectUpdated as onProjectUpdated, context$1_queryProjects as queryProjects, context$1_queryProjectsWithCollectionInfo as queryProjectsWithCollectionInfo, context$1_updateProject as updateProject, updateProjectOrderInCollection$2 as updateProjectOrderInCollection };
|
|
2038
|
+
export { context$1_bulkUpdateProjects as bulkUpdateProjects, context$1_createProject as createProject, context$1_deleteProject as deleteProject, context$1_getProject as getProject, context$1_getProjectPageData as getProjectPageData, context$1_listProjects as listProjects, context$1_onProjectCreated as onProjectCreated, context$1_onProjectDeleted as onProjectDeleted, context$1_onProjectUpdated as onProjectUpdated, context$1_queryProjects as queryProjects, context$1_queryProjectsWithCollectionInfo as queryProjectsWithCollectionInfo, context$1_updateProject as updateProject, updateProjectOrderInCollection$2 as updateProjectOrderInCollection };
|
|
1871
2039
|
}
|
|
1872
2040
|
|
|
1873
2041
|
interface ProjectInCollection {
|
|
@@ -2259,4 +2427,4 @@ declare namespace context {
|
|
|
2259
2427
|
export { context_onProjectInCollectionProjectOrderInCollectionUpdatedEvent as onProjectInCollectionProjectOrderInCollectionUpdatedEvent, context_queryProjectInCollections as queryProjectInCollections, context_updateProjectOrderInCollection as updateProjectOrderInCollection };
|
|
2260
2428
|
}
|
|
2261
2429
|
|
|
2262
|
-
export { context$
|
|
2430
|
+
export { context$4 as collections, context$3 as portfolioSettings, context as projectInCollections, context$2 as projectItems, context$1 as projects };
|