@wix/portfolio 1.0.64 → 1.0.66
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 +6 -5
- package/type-bundles/context.bundle.d.ts +206 -42
- package/type-bundles/index.bundle.d.ts +564 -261
- package/type-bundles/meta.bundle.d.ts +399 -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.66",
|
|
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/
|
|
23
|
-
"@wix/portfolio_project-
|
|
24
|
-
"@wix/
|
|
22
|
+
"@wix/portfolio_portfolio-settings": "1.0.0",
|
|
23
|
+
"@wix/portfolio_project-in-collections": "1.0.14",
|
|
24
|
+
"@wix/portfolio_project-items": "1.0.17",
|
|
25
|
+
"@wix/portfolio_projects": "1.0.17"
|
|
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": "0db213143d8bca3b3f4b1b4b3d0d770750fe49719b5b8d32df470288"
|
|
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[];
|
|
@@ -722,35 +828,11 @@ interface DuplicateProjectItemsResponse {
|
|
|
722
828
|
/** Result metadata */
|
|
723
829
|
bulkActionMetadata?: BulkActionMetadata$1;
|
|
724
830
|
}
|
|
725
|
-
interface
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
731
|
-
wixUserId?: string;
|
|
732
|
-
/** ID of an app. */
|
|
733
|
-
appId?: string;
|
|
734
|
-
/** @readonly */
|
|
735
|
-
identityType?: WebhookIdentityType$2;
|
|
736
|
-
}
|
|
737
|
-
/** @oneof */
|
|
738
|
-
interface IdentificationDataIdOneOf$2 {
|
|
739
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
740
|
-
anonymousVisitorId?: string;
|
|
741
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
742
|
-
memberId?: string;
|
|
743
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
744
|
-
wixUserId?: string;
|
|
745
|
-
/** ID of an app. */
|
|
746
|
-
appId?: string;
|
|
747
|
-
}
|
|
748
|
-
declare enum WebhookIdentityType$2 {
|
|
749
|
-
UNKNOWN = "UNKNOWN",
|
|
750
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
751
|
-
MEMBER = "MEMBER",
|
|
752
|
-
WIX_USER = "WIX_USER",
|
|
753
|
-
APP = "APP"
|
|
831
|
+
interface GenerateTokenForProjectItemsResponseNonNullableFields {
|
|
832
|
+
mediaTokens: {
|
|
833
|
+
mediaId: string;
|
|
834
|
+
mediaToken: string;
|
|
835
|
+
}[];
|
|
754
836
|
}
|
|
755
837
|
interface BulkCreateProjectItemsResponseNonNullableFields {
|
|
756
838
|
results: {
|
|
@@ -984,6 +1066,7 @@ interface DuplicateProjectItemsOptions {
|
|
|
984
1066
|
targetProjectId: string;
|
|
985
1067
|
}
|
|
986
1068
|
|
|
1069
|
+
declare function generateTokenForProjectItems$1(httpClient: HttpClient): (mediaIds: string[]) => Promise<GenerateTokenForProjectItemsResponse & GenerateTokenForProjectItemsResponseNonNullableFields>;
|
|
987
1070
|
declare function createProjectItem$1(httpClient: HttpClient): (item: Item) => Promise<Item & {
|
|
988
1071
|
image?: {
|
|
989
1072
|
imageInfo: string;
|
|
@@ -1033,6 +1116,7 @@ declare const onProjectItemCreated$1: EventDefinition<ProjectItemCreatedEnvelope
|
|
|
1033
1116
|
declare const onProjectItemUpdated$1: EventDefinition<ProjectItemUpdatedEnvelope, "wix.portfolio.project_items.v1.project_item_updated">;
|
|
1034
1117
|
declare const onProjectItemDeleted$1: EventDefinition<ProjectItemDeletedEnvelope, "wix.portfolio.project_items.v1.project_item_deleted">;
|
|
1035
1118
|
|
|
1119
|
+
declare const generateTokenForProjectItems: BuildRESTFunction<typeof generateTokenForProjectItems$1>;
|
|
1036
1120
|
declare const createProjectItem: BuildRESTFunction<typeof createProjectItem$1>;
|
|
1037
1121
|
declare const bulkCreateProjectItems: BuildRESTFunction<typeof bulkCreateProjectItems$1>;
|
|
1038
1122
|
declare const getProjectItem: BuildRESTFunction<typeof getProjectItem$1>;
|
|
@@ -1052,6 +1136,7 @@ declare const context$2_bulkUpdateProjectItems: typeof bulkUpdateProjectItems;
|
|
|
1052
1136
|
declare const context$2_createProjectItem: typeof createProjectItem;
|
|
1053
1137
|
declare const context$2_deleteProjectItem: typeof deleteProjectItem;
|
|
1054
1138
|
declare const context$2_duplicateProjectItems: typeof duplicateProjectItems;
|
|
1139
|
+
declare const context$2_generateTokenForProjectItems: typeof generateTokenForProjectItems;
|
|
1055
1140
|
declare const context$2_getProjectItem: typeof getProjectItem;
|
|
1056
1141
|
declare const context$2_listProjectItems: typeof listProjectItems;
|
|
1057
1142
|
declare const context$2_onProjectItemCreated: typeof onProjectItemCreated;
|
|
@@ -1059,7 +1144,7 @@ declare const context$2_onProjectItemDeleted: typeof onProjectItemDeleted;
|
|
|
1059
1144
|
declare const context$2_onProjectItemUpdated: typeof onProjectItemUpdated;
|
|
1060
1145
|
declare const context$2_updateProjectItem: typeof updateProjectItem;
|
|
1061
1146
|
declare namespace context$2 {
|
|
1062
|
-
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_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 };
|
|
1063
1148
|
}
|
|
1064
1149
|
|
|
1065
1150
|
/** Project is the main entity of ProjectsService */
|
|
@@ -1086,6 +1171,7 @@ interface Project$1 extends ProjectCoverOneOf$1 {
|
|
|
1086
1171
|
collectionIds?: string[];
|
|
1087
1172
|
/** Custom project details */
|
|
1088
1173
|
details?: ProjectDetail$1[];
|
|
1174
|
+
/** Project's slug */
|
|
1089
1175
|
slug?: string | null;
|
|
1090
1176
|
/**
|
|
1091
1177
|
* Represents the time this Project was created
|
|
@@ -1102,6 +1188,7 @@ interface Project$1 extends ProjectCoverOneOf$1 {
|
|
|
1102
1188
|
* @readonly
|
|
1103
1189
|
*/
|
|
1104
1190
|
url?: string;
|
|
1191
|
+
/** SEO data for the project */
|
|
1105
1192
|
seoData?: SeoSchema$1;
|
|
1106
1193
|
/**
|
|
1107
1194
|
* indicates if the project is synced from external platform (via integration page) and therefore will be updated from the external platform on daily basis
|
|
@@ -1136,12 +1223,14 @@ interface Video$1 {
|
|
|
1136
1223
|
}
|
|
1137
1224
|
interface ProjectDetail$1 extends ProjectDetailValueOneOf$1 {
|
|
1138
1225
|
text?: string;
|
|
1226
|
+
/** Details link */
|
|
1139
1227
|
link?: DetailsLink$1;
|
|
1140
1228
|
label?: string;
|
|
1141
1229
|
}
|
|
1142
1230
|
/** @oneof */
|
|
1143
1231
|
interface ProjectDetailValueOneOf$1 {
|
|
1144
1232
|
text?: string;
|
|
1233
|
+
/** Details link */
|
|
1145
1234
|
link?: DetailsLink$1;
|
|
1146
1235
|
}
|
|
1147
1236
|
interface DetailsLink$1 {
|
|
@@ -1205,6 +1294,16 @@ interface Settings$1 {
|
|
|
1205
1294
|
/** User-selected keyword terms for a specific page. */
|
|
1206
1295
|
keywords?: Keyword$1[];
|
|
1207
1296
|
}
|
|
1297
|
+
interface GetProjectPageDataResponse {
|
|
1298
|
+
project?: Project$1;
|
|
1299
|
+
previousProject?: ProjectSlug;
|
|
1300
|
+
nextProject?: ProjectSlug;
|
|
1301
|
+
}
|
|
1302
|
+
interface ProjectSlug {
|
|
1303
|
+
/** Project id */
|
|
1304
|
+
projectId?: string;
|
|
1305
|
+
slug?: string;
|
|
1306
|
+
}
|
|
1208
1307
|
interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
|
|
1209
1308
|
/** ID of a site visitor that has not logged in to the site. */
|
|
1210
1309
|
anonymousVisitorId?: string;
|
|
@@ -1271,6 +1370,7 @@ interface Cursors$1 {
|
|
|
1271
1370
|
prev?: string | null;
|
|
1272
1371
|
}
|
|
1273
1372
|
interface MaskedProject {
|
|
1373
|
+
/** Project to be updated */
|
|
1274
1374
|
project?: Project$1;
|
|
1275
1375
|
}
|
|
1276
1376
|
interface BulkUpdateProjectsResponse {
|
|
@@ -1282,6 +1382,7 @@ interface BulkUpdateProjectsResponse {
|
|
|
1282
1382
|
interface BulkUpdateProjectsResult {
|
|
1283
1383
|
/** Holds information about an item in bulk update - id, index in original request array, action successful, error (if failed). */
|
|
1284
1384
|
itemMetadata?: ItemMetadata;
|
|
1385
|
+
/** Updated Project */
|
|
1285
1386
|
project?: Project$1;
|
|
1286
1387
|
}
|
|
1287
1388
|
interface ItemMetadata {
|
|
@@ -1379,6 +1480,49 @@ interface QueryProjectWithCollectionInfoResponse {
|
|
|
1379
1480
|
/** Paging metadata */
|
|
1380
1481
|
metadata?: PagingMetadataV2;
|
|
1381
1482
|
}
|
|
1483
|
+
interface GetProjectPageDataResponseNonNullableFields {
|
|
1484
|
+
project?: {
|
|
1485
|
+
coverImage?: {
|
|
1486
|
+
imageInfo: string;
|
|
1487
|
+
focalPoint?: {
|
|
1488
|
+
x: number;
|
|
1489
|
+
y: number;
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1492
|
+
coverVideo?: {
|
|
1493
|
+
videoInfo: string;
|
|
1494
|
+
};
|
|
1495
|
+
collectionIds: string[];
|
|
1496
|
+
details: {
|
|
1497
|
+
text: string;
|
|
1498
|
+
label: string;
|
|
1499
|
+
}[];
|
|
1500
|
+
url: string;
|
|
1501
|
+
seoData?: {
|
|
1502
|
+
tags: {
|
|
1503
|
+
type: string;
|
|
1504
|
+
children: string;
|
|
1505
|
+
custom: boolean;
|
|
1506
|
+
disabled: boolean;
|
|
1507
|
+
}[];
|
|
1508
|
+
settings?: {
|
|
1509
|
+
preventAutoRedirect: boolean;
|
|
1510
|
+
keywords: {
|
|
1511
|
+
term: string;
|
|
1512
|
+
isMain: boolean;
|
|
1513
|
+
}[];
|
|
1514
|
+
};
|
|
1515
|
+
};
|
|
1516
|
+
};
|
|
1517
|
+
previousProject?: {
|
|
1518
|
+
projectId: string;
|
|
1519
|
+
slug: string;
|
|
1520
|
+
};
|
|
1521
|
+
nextProject?: {
|
|
1522
|
+
projectId: string;
|
|
1523
|
+
slug: string;
|
|
1524
|
+
};
|
|
1525
|
+
}
|
|
1382
1526
|
interface ListProjectsResponseNonNullableFields {
|
|
1383
1527
|
projects: {
|
|
1384
1528
|
coverImage?: {
|
|
@@ -1600,12 +1744,20 @@ interface ProjectUpdatedEnvelope {
|
|
|
1600
1744
|
interface ProjectDeletedEnvelope {
|
|
1601
1745
|
metadata: EventMetadata$1;
|
|
1602
1746
|
}
|
|
1747
|
+
interface GetProjectPageDataIdentifiers {
|
|
1748
|
+
/** Slug of the project's current collection */
|
|
1749
|
+
collectionSlug: string;
|
|
1750
|
+
/** Project's slug */
|
|
1751
|
+
projectSlug: string;
|
|
1752
|
+
}
|
|
1603
1753
|
interface GetProjectOptions {
|
|
1754
|
+
/** Include page url */
|
|
1604
1755
|
includePageUrl?: boolean | null;
|
|
1605
1756
|
}
|
|
1606
1757
|
interface ListProjectsOptions {
|
|
1607
1758
|
/** Projects limit per response is maximum 100, In the first request the cursor is None */
|
|
1608
1759
|
paging?: CursorPaging;
|
|
1760
|
+
/** Include page url */
|
|
1609
1761
|
includePageUrl?: boolean | null;
|
|
1610
1762
|
}
|
|
1611
1763
|
interface UpdateProject {
|
|
@@ -1631,6 +1783,7 @@ interface UpdateProject {
|
|
|
1631
1783
|
collectionIds?: string[];
|
|
1632
1784
|
/** Custom project details */
|
|
1633
1785
|
details?: ProjectDetail$1[];
|
|
1786
|
+
/** Project's slug */
|
|
1634
1787
|
slug?: string | null;
|
|
1635
1788
|
/**
|
|
1636
1789
|
* Represents the time this Project was created
|
|
@@ -1647,6 +1800,7 @@ interface UpdateProject {
|
|
|
1647
1800
|
* @readonly
|
|
1648
1801
|
*/
|
|
1649
1802
|
url?: string;
|
|
1803
|
+
/** SEO data for the project */
|
|
1650
1804
|
seoData?: SeoSchema$1;
|
|
1651
1805
|
/**
|
|
1652
1806
|
* indicates if the project is synced from external platform (via integration page) and therefore will be updated from the external platform on daily basis
|
|
@@ -1657,9 +1811,11 @@ interface UpdateProject {
|
|
|
1657
1811
|
interface BulkUpdateProjectsOptions {
|
|
1658
1812
|
/** projects to be updated. */
|
|
1659
1813
|
projects?: MaskedProject[];
|
|
1814
|
+
/** Flag to return full entity in response */
|
|
1660
1815
|
returnFullEntity?: boolean | null;
|
|
1661
1816
|
}
|
|
1662
1817
|
interface QueryProjectsOptions {
|
|
1818
|
+
/** Include page url */
|
|
1663
1819
|
includePageUrl?: boolean | null | undefined;
|
|
1664
1820
|
}
|
|
1665
1821
|
interface QueryCursorResult$1 {
|
|
@@ -1751,9 +1907,11 @@ interface UpdateProjectOrderInCollectionIdentifiers$1 {
|
|
|
1751
1907
|
collectionId: string;
|
|
1752
1908
|
}
|
|
1753
1909
|
interface QueryProjectsWithCollectionInfoOptions {
|
|
1910
|
+
/** Include page url */
|
|
1754
1911
|
includePageUrl?: boolean | null;
|
|
1755
1912
|
}
|
|
1756
1913
|
|
|
1914
|
+
declare function getProjectPageData$1(httpClient: HttpClient): (identifiers: GetProjectPageDataIdentifiers) => Promise<GetProjectPageDataResponse & GetProjectPageDataResponseNonNullableFields>;
|
|
1757
1915
|
declare function createProject$1(httpClient: HttpClient): (project: Project$1) => Promise<Project$1 & {
|
|
1758
1916
|
coverImage?: {
|
|
1759
1917
|
imageInfo: string;
|
|
@@ -1863,6 +2021,7 @@ declare const onProjectCreated$1: EventDefinition<ProjectCreatedEnvelope, "wix.p
|
|
|
1863
2021
|
declare const onProjectUpdated$1: EventDefinition<ProjectUpdatedEnvelope, "wix.portfolio.projects.v1.project_updated">;
|
|
1864
2022
|
declare const onProjectDeleted$1: EventDefinition<ProjectDeletedEnvelope, "wix.portfolio.projects.v1.project_deleted">;
|
|
1865
2023
|
|
|
2024
|
+
declare const getProjectPageData: BuildRESTFunction<typeof getProjectPageData$1>;
|
|
1866
2025
|
declare const createProject: BuildRESTFunction<typeof createProject$1>;
|
|
1867
2026
|
declare const getProject: BuildRESTFunction<typeof getProject$1>;
|
|
1868
2027
|
declare const listProjects: BuildRESTFunction<typeof listProjects$1>;
|
|
@@ -1880,6 +2039,7 @@ declare const context$1_bulkUpdateProjects: typeof bulkUpdateProjects;
|
|
|
1880
2039
|
declare const context$1_createProject: typeof createProject;
|
|
1881
2040
|
declare const context$1_deleteProject: typeof deleteProject;
|
|
1882
2041
|
declare const context$1_getProject: typeof getProject;
|
|
2042
|
+
declare const context$1_getProjectPageData: typeof getProjectPageData;
|
|
1883
2043
|
declare const context$1_listProjects: typeof listProjects;
|
|
1884
2044
|
declare const context$1_onProjectCreated: typeof onProjectCreated;
|
|
1885
2045
|
declare const context$1_onProjectDeleted: typeof onProjectDeleted;
|
|
@@ -1888,7 +2048,7 @@ declare const context$1_queryProjects: typeof queryProjects;
|
|
|
1888
2048
|
declare const context$1_queryProjectsWithCollectionInfo: typeof queryProjectsWithCollectionInfo;
|
|
1889
2049
|
declare const context$1_updateProject: typeof updateProject;
|
|
1890
2050
|
declare namespace context$1 {
|
|
1891
|
-
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 };
|
|
2051
|
+
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 };
|
|
1892
2052
|
}
|
|
1893
2053
|
|
|
1894
2054
|
interface ProjectInCollection {
|
|
@@ -1923,6 +2083,7 @@ interface Project extends ProjectCoverOneOf {
|
|
|
1923
2083
|
collectionIds?: string[];
|
|
1924
2084
|
/** Custom project details */
|
|
1925
2085
|
details?: ProjectDetail[];
|
|
2086
|
+
/** Project's slug */
|
|
1926
2087
|
slug?: string | null;
|
|
1927
2088
|
/**
|
|
1928
2089
|
* Represents the time this Project was created
|
|
@@ -1939,6 +2100,7 @@ interface Project extends ProjectCoverOneOf {
|
|
|
1939
2100
|
* @readonly
|
|
1940
2101
|
*/
|
|
1941
2102
|
url?: string;
|
|
2103
|
+
/** SEO data for the project */
|
|
1942
2104
|
seoData?: SeoSchema;
|
|
1943
2105
|
/**
|
|
1944
2106
|
* indicates if the project is synced from external platform (via integration page) and therefore will be updated from the external platform on daily basis
|
|
@@ -1973,12 +2135,14 @@ interface Video {
|
|
|
1973
2135
|
}
|
|
1974
2136
|
interface ProjectDetail extends ProjectDetailValueOneOf {
|
|
1975
2137
|
text?: string;
|
|
2138
|
+
/** Details link */
|
|
1976
2139
|
link?: DetailsLink;
|
|
1977
2140
|
label?: string;
|
|
1978
2141
|
}
|
|
1979
2142
|
/** @oneof */
|
|
1980
2143
|
interface ProjectDetailValueOneOf {
|
|
1981
2144
|
text?: string;
|
|
2145
|
+
/** Details link */
|
|
1982
2146
|
link?: DetailsLink;
|
|
1983
2147
|
}
|
|
1984
2148
|
interface DetailsLink {
|
|
@@ -2280,4 +2444,4 @@ declare namespace context {
|
|
|
2280
2444
|
export { context_onProjectInCollectionProjectOrderInCollectionUpdatedEvent as onProjectInCollectionProjectOrderInCollectionUpdatedEvent, context_queryProjectInCollections as queryProjectInCollections, context_updateProjectOrderInCollection as updateProjectOrderInCollection };
|
|
2281
2445
|
}
|
|
2282
2446
|
|
|
2283
|
-
export { context$
|
|
2447
|
+
export { context$4 as collections, context$3 as portfolioSettings, context as projectInCollections, context$2 as projectItems, context$1 as projects };
|