sp-js-provisioning 1.0.4 → 1.1.2
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/.husky/commit-msg +4 -0
- package/README.md +11 -31
- package/lib/handlers/clientsidepages.d.ts +13 -13
- package/lib/handlers/clientsidepages.js +77 -60
- package/lib/handlers/clientsidepages.js.map +1 -0
- package/lib/handlers/composedlook.d.ts +6 -6
- package/lib/handlers/composedlook.js +24 -17
- package/lib/handlers/composedlook.js.map +1 -0
- package/lib/handlers/contenttypes.d.ts +20 -20
- package/lib/handlers/contenttypes.js +77 -59
- package/lib/handlers/contenttypes.js.map +1 -0
- package/lib/handlers/customactions.d.ts +7 -7
- package/lib/handlers/customactions.js +24 -17
- package/lib/handlers/customactions.js.map +1 -0
- package/lib/handlers/exports.d.ts +3 -3
- package/lib/handlers/exports.js +15 -11
- package/lib/handlers/exports.js.map +1 -0
- package/lib/handlers/features.d.ts +7 -7
- package/lib/handlers/features.js +24 -22
- package/lib/handlers/features.js.map +1 -0
- package/lib/handlers/files.d.ts +44 -44
- package/lib/handlers/files.js +229 -159
- package/lib/handlers/files.js.map +1 -0
- package/lib/handlers/handlerbase.d.ts +21 -11
- package/lib/handlers/handlerbase.js +51 -16
- package/lib/handlers/handlerbase.js.map +1 -0
- package/lib/handlers/hooks.d.ts +22 -0
- package/lib/handlers/hooks.js +230 -0
- package/lib/handlers/hooks.js.map +1 -0
- package/lib/handlers/lists.d.ts +45 -45
- package/lib/handlers/lists.js +184 -150
- package/lib/handlers/lists.js.map +1 -0
- package/lib/handlers/navigation.d.ts +10 -10
- package/lib/handlers/navigation.js +40 -31
- package/lib/handlers/navigation.js.map +1 -0
- package/lib/handlers/propertybagentries.d.ts +7 -7
- package/lib/handlers/propertybagentries.js +30 -25
- package/lib/handlers/propertybagentries.js.map +1 -0
- package/lib/handlers/sitefields.d.ts +11 -11
- package/lib/handlers/sitefields.js +40 -29
- package/lib/handlers/sitefields.js.map +1 -0
- package/lib/handlers/websettings.d.ts +7 -7
- package/lib/handlers/websettings.js +36 -33
- package/lib/handlers/websettings.js.map +1 -0
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -0
- package/lib/provisioningconfig.d.ts +2 -2
- package/lib/provisioningconfig.js +2 -0
- package/lib/provisioningconfig.js.map +1 -0
- package/lib/provisioningcontext.d.ts +1 -5
- package/lib/provisioningcontext.js +2 -4
- package/lib/provisioningcontext.js.map +1 -0
- package/lib/schema.d.ts +18 -4
- package/lib/schema.js +2 -0
- package/lib/schema.js.map +1 -0
- package/lib/util/index.d.ts +3 -6
- package/lib/util/index.js +20 -29
- package/lib/util/index.js.map +1 -0
- package/lib/util/tokenhelper.d.ts +3 -3
- package/lib/util/tokenhelper.js +30 -29
- package/lib/util/tokenhelper.js.map +1 -0
- package/lib/webprovisioner.d.ts +16 -16
- package/lib/webprovisioner.js +42 -29
- package/lib/webprovisioner.js.map +1 -0
- package/package.json +118 -36
- package/sample-schemas/all-simple.ts +85 -76
- package/AUTHORS +0 -3
- package/LICENSE +0 -25
- package/debug/debug.ts +0 -68
- package/debug/example.ts +0 -42
- package/gulptasks/@configuration.js +0 -58
- package/gulptasks/build.js +0 -84
- package/gulptasks/clean.js +0 -23
- package/gulptasks/docs.js +0 -11
- package/gulptasks/index.js +0 -8
- package/gulptasks/lint.js +0 -18
- package/gulptasks/package.js +0 -44
- package/gulptasks/publish.js +0 -232
- package/gulptasks/test.js +0 -40
- package/gulptasks/watch.js +0 -15
- package/jsdoc.json +0 -26
- package/pnpm-lock.yaml +0 -6582
- package/shrinkwrap.yaml +0 -6513
- package/webpack.config.js +0 -58
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/handlers/files.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAkD;AAClD,OAAO,KAAK,KAAK,MAAM,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G,CAAC;4BACT,KAAK,cAAe;4BACpB,OAAO,EAAE,2CAAyC,IAAI,CAAC,MAAM,SAAI,IAAI,CAAC,GAAK;yBAC5E,CAAC,CAAA;;;;;;KAEL;IAED;;;;;OAKG;IACK,uCAAuB,GAA/B,UACE,MAAc,EACd,OAAyB;QAEzB,IAAM,IAAI,GAAG,OAAO,CAClB,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAC1B,IAAI,EACJ,QAAQ,CAAC,QAAQ,CAAC,IAAI,EACtB,OAAO,CAAC,OAAO,EAAE,CAClB,CAAA;QACD,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;IACxC,CAAC;IACH,YAAC;AAAD,CAAC,AA5dD,CAA2B,WAAW,GA4drC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Web } from '@pnp/sp';
|
|
2
|
-
import { ProvisioningContext } from '../provisioningcontext';
|
|
3
2
|
import { IProvisioningConfig } from '../provisioningconfig';
|
|
3
|
+
import { ProvisioningContext } from '../provisioningcontext';
|
|
4
4
|
/**
|
|
5
5
|
* Describes the Object Handler Base
|
|
6
6
|
*/
|
|
@@ -10,8 +10,8 @@ export declare class HandlerBase {
|
|
|
10
10
|
/**
|
|
11
11
|
* Creates a new instance of the ObjectHandlerBase class
|
|
12
12
|
*
|
|
13
|
-
* @param
|
|
14
|
-
* @param
|
|
13
|
+
* @param name - Name
|
|
14
|
+
* @param config - Config
|
|
15
15
|
*/
|
|
16
16
|
constructor(name: string, config?: IProvisioningConfig);
|
|
17
17
|
/**
|
|
@@ -24,22 +24,32 @@ export declare class HandlerBase {
|
|
|
24
24
|
scope_started(): void;
|
|
25
25
|
/**
|
|
26
26
|
* Writes to Logger when scope has stopped
|
|
27
|
+
*
|
|
28
|
+
* @param error Error
|
|
27
29
|
*/
|
|
28
|
-
scope_ended(): void;
|
|
30
|
+
scope_ended(error?: Error): void;
|
|
29
31
|
/**
|
|
30
32
|
* Writes to Logger
|
|
31
33
|
*
|
|
32
|
-
* @param
|
|
33
|
-
* @param
|
|
34
|
-
* @param
|
|
34
|
+
* @param scope - Scope
|
|
35
|
+
* @param message - Message
|
|
36
|
+
* @param data - Data
|
|
35
37
|
*/
|
|
36
38
|
log_info(scope: string, message: string, data?: any): void;
|
|
37
39
|
/**
|
|
38
|
-
* Writes to
|
|
40
|
+
* Writes a warning to the logger
|
|
39
41
|
*
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
42
|
+
* @param scope - Scope
|
|
43
|
+
* @param message - Message
|
|
44
|
+
* @param data - Data
|
|
43
45
|
*/
|
|
44
46
|
log_warn(scope: string, message: string, data?: any): void;
|
|
47
|
+
/**
|
|
48
|
+
* Writes an error to the logger
|
|
49
|
+
*
|
|
50
|
+
* @param scope - Scope
|
|
51
|
+
* @param message - Message
|
|
52
|
+
* @param data - Data
|
|
53
|
+
*/
|
|
54
|
+
log_error(scope: string, message: string, data?: any): void;
|
|
45
55
|
}
|
|
@@ -2,12 +2,12 @@ import { Logger } from '@pnp/logging';
|
|
|
2
2
|
/**
|
|
3
3
|
* Describes the Object Handler Base
|
|
4
4
|
*/
|
|
5
|
-
var HandlerBase = (function () {
|
|
5
|
+
var HandlerBase = /** @class */ (function () {
|
|
6
6
|
/**
|
|
7
7
|
* Creates a new instance of the ObjectHandlerBase class
|
|
8
8
|
*
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
9
|
+
* @param name - Name
|
|
10
|
+
* @param config - Config
|
|
11
11
|
*/
|
|
12
12
|
function HandlerBase(name, config) {
|
|
13
13
|
if (config === void 0) { config = {}; }
|
|
@@ -30,32 +30,67 @@ var HandlerBase = (function () {
|
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* Writes to Logger when scope has stopped
|
|
33
|
+
*
|
|
34
|
+
* @param error Error
|
|
33
35
|
*/
|
|
34
|
-
HandlerBase.prototype.scope_ended = function () {
|
|
35
|
-
|
|
36
|
+
HandlerBase.prototype.scope_ended = function (error) {
|
|
37
|
+
if (error)
|
|
38
|
+
this.log_error('ProvisionObjects', "Code execution scope ended with error: " + error.message);
|
|
39
|
+
else
|
|
40
|
+
this.log_info('ProvisionObjects', 'Code execution scope ended');
|
|
36
41
|
};
|
|
37
42
|
/**
|
|
38
43
|
* Writes to Logger
|
|
39
44
|
*
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
45
|
+
* @param scope - Scope
|
|
46
|
+
* @param message - Message
|
|
47
|
+
* @param data - Data
|
|
43
48
|
*/
|
|
44
49
|
HandlerBase.prototype.log_info = function (scope, message, data) {
|
|
45
|
-
var prefix =
|
|
46
|
-
|
|
50
|
+
var prefix = this.config.logging && this.config.logging.prefix
|
|
51
|
+
? this.config.logging.prefix + " "
|
|
52
|
+
: '';
|
|
53
|
+
Logger.log({
|
|
54
|
+
message: prefix + "(" + this.name + "): (" + scope + "): " + message,
|
|
55
|
+
data: data,
|
|
56
|
+
level: 1 /* Info */
|
|
57
|
+
});
|
|
47
58
|
};
|
|
48
59
|
/**
|
|
49
|
-
* Writes to
|
|
60
|
+
* Writes a warning to the logger
|
|
50
61
|
*
|
|
51
|
-
* @param
|
|
52
|
-
* @param
|
|
53
|
-
* @param
|
|
62
|
+
* @param scope - Scope
|
|
63
|
+
* @param message - Message
|
|
64
|
+
* @param data - Data
|
|
54
65
|
*/
|
|
55
66
|
HandlerBase.prototype.log_warn = function (scope, message, data) {
|
|
56
|
-
var prefix =
|
|
57
|
-
|
|
67
|
+
var prefix = this.config.logging && this.config.logging.prefix
|
|
68
|
+
? this.config.logging.prefix + " "
|
|
69
|
+
: '';
|
|
70
|
+
Logger.log({
|
|
71
|
+
message: prefix + "(" + this.name + "): (" + scope + "): " + message,
|
|
72
|
+
data: data,
|
|
73
|
+
level: 2 /* Warning */
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Writes an error to the logger
|
|
78
|
+
*
|
|
79
|
+
* @param scope - Scope
|
|
80
|
+
* @param message - Message
|
|
81
|
+
* @param data - Data
|
|
82
|
+
*/
|
|
83
|
+
HandlerBase.prototype.log_error = function (scope, message, data) {
|
|
84
|
+
var prefix = this.config.logging && this.config.logging.prefix
|
|
85
|
+
? this.config.logging.prefix + " "
|
|
86
|
+
: '';
|
|
87
|
+
Logger.log({
|
|
88
|
+
message: prefix + "(" + this.name + "): (" + scope + "): " + message,
|
|
89
|
+
data: data,
|
|
90
|
+
level: 3 /* Error */
|
|
91
|
+
});
|
|
58
92
|
};
|
|
59
93
|
return HandlerBase;
|
|
60
94
|
}());
|
|
61
95
|
export { HandlerBase };
|
|
96
|
+
//# sourceMappingURL=handlerbase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handlerbase.js","sourceRoot":"","sources":["../../src/handlers/handlerbase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAY,MAAM,cAAc,CAAA;AAK/C;;GAEG;AACH;IAIE;;;;;OAKG;IACH,qBAAY,IAAY,EAAE,MAAgC;QAAhC,uBAAA,EAAA,WAAgC;QATnD,WAAM,GAAwB,EAAE,CAAA;QAUrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;OAEG;IACI,sCAAgB,GAAvB,UAAwB,GAAQ,EAAE,YAAiB,EAAE,QAA8B;QACjF,MAAM,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,iBAAkB,EAAE,OAAO,EAAE,aAAW,IAAI,CAAC,IAAI,kBAAa,GAAG,CAAC,KAAK,EAAE,0CAAuC,EAAE,CAAC,CAAA;QACzJ,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;IAC1B,CAAC;IAED;;OAEG;IACI,mCAAa,GAApB;QACE,IAAI,CAAC,QAAQ,CAAC,kBAAkB,EAAE,8BAA8B,CAAC,CAAA;IACnE,CAAC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M,CAAC,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM;YAC/C,CAAC,CAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,MAAG;YAClC,CAAC,CAAC,EAAE,CAAA;QACR,MAAM,CAAC,GAAG,CAAC;YACT,OAAO,EAAK,MAAM,SAAI,IAAI,CAAC,IAAI,YAAO,KAAK,WAAM,OAAS;YAC1D,IAAI,EAAE,IAAI;YACV,KAAK,eAAgB;SACtB,CAAC,CAAA;IACJ,CAAC;IACH,kBAAC;AAAD,CAAC,AAhGD,IAgGC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HandlerBase } from './handlerbase';
|
|
2
|
+
import { IHooks } from '../schema';
|
|
3
|
+
import { Web } from '@pnp/sp';
|
|
4
|
+
import { IProvisioningConfig } from '../provisioningconfig';
|
|
5
|
+
/**
|
|
6
|
+
* Describes the Hooks Object Handler
|
|
7
|
+
*/
|
|
8
|
+
export declare class Hooks extends HandlerBase {
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new instance of the Hooks class
|
|
11
|
+
*
|
|
12
|
+
* @param config - Provisioning config
|
|
13
|
+
*/
|
|
14
|
+
constructor(config: IProvisioningConfig);
|
|
15
|
+
/**
|
|
16
|
+
* Provisioning Hooks
|
|
17
|
+
*
|
|
18
|
+
* @param hooks - The hook(s) to apply
|
|
19
|
+
*/
|
|
20
|
+
ProvisionObjects(web: Web, hooks: IHooks[]): Promise<void>;
|
|
21
|
+
static getJsonResult(res: any): Promise<any>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
24
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
25
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
26
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
27
|
+
function step(op) {
|
|
28
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
29
|
+
while (_) try {
|
|
30
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
31
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
32
|
+
switch (op[0]) {
|
|
33
|
+
case 0: case 1: t = op; break;
|
|
34
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
35
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
36
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
37
|
+
default:
|
|
38
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
39
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
40
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
41
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
42
|
+
if (t[2]) _.ops.pop();
|
|
43
|
+
_.trys.pop(); continue;
|
|
44
|
+
}
|
|
45
|
+
op = body.call(thisArg, _);
|
|
46
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
47
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
import { HandlerBase } from './handlerbase';
|
|
51
|
+
/**
|
|
52
|
+
* Describes the Hooks Object Handler
|
|
53
|
+
*/
|
|
54
|
+
var Hooks = /** @class */ (function (_super) {
|
|
55
|
+
__extends(Hooks, _super);
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new instance of the Hooks class
|
|
58
|
+
*
|
|
59
|
+
* @param config - Provisioning config
|
|
60
|
+
*/
|
|
61
|
+
function Hooks(config) {
|
|
62
|
+
return _super.call(this, Hooks.name, config) || this;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Provisioning Hooks
|
|
66
|
+
*
|
|
67
|
+
* @param hooks - The hook(s) to apply
|
|
68
|
+
*/
|
|
69
|
+
Hooks.prototype.ProvisionObjects = function (web, hooks) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
71
|
+
var promises, error_1;
|
|
72
|
+
var _this = this;
|
|
73
|
+
return __generator(this, function (_a) {
|
|
74
|
+
switch (_a.label) {
|
|
75
|
+
case 0:
|
|
76
|
+
_super.prototype.scope_started.call(this);
|
|
77
|
+
promises = [];
|
|
78
|
+
hooks.forEach(function (hook, index) { return __awaiter(_this, void 0, void 0, function () {
|
|
79
|
+
var getRequest, postRequest;
|
|
80
|
+
var _this = this;
|
|
81
|
+
return __generator(this, function (_a) {
|
|
82
|
+
if (hook.Method === 'GET') {
|
|
83
|
+
_super.prototype.log_info.call(this, 'processHooks', "Starting GET request: '" + hook.Title + "'.");
|
|
84
|
+
getRequest = {
|
|
85
|
+
method: 'GET',
|
|
86
|
+
headers: hook.Headers || {},
|
|
87
|
+
};
|
|
88
|
+
promises.push(fetch(hook.Url, getRequest).then(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
89
|
+
var result;
|
|
90
|
+
return __generator(this, function (_a) {
|
|
91
|
+
switch (_a.label) {
|
|
92
|
+
case 0: return [4 /*yield*/, Hooks.getJsonResult(res)];
|
|
93
|
+
case 1:
|
|
94
|
+
result = _a.sent();
|
|
95
|
+
if (!res.ok) {
|
|
96
|
+
throw new Error((result ? " | " + result + " \n\n" : '') + "- Hook " + (index + 1) + "/" + hooks.length + ": " + hook.Title);
|
|
97
|
+
}
|
|
98
|
+
return [2 /*return*/];
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}); }));
|
|
102
|
+
}
|
|
103
|
+
else if (hook.Method === 'POST') {
|
|
104
|
+
_super.prototype.log_info.call(this, 'processHooks', "Starting POST request: '" + hook.Title + "'.");
|
|
105
|
+
hook.Body['pp_webUrl'] = web['_parentUrl'];
|
|
106
|
+
postRequest = {
|
|
107
|
+
method: 'POST',
|
|
108
|
+
body: JSON.stringify(hook.Body) || '',
|
|
109
|
+
headers: hook.Headers || {},
|
|
110
|
+
};
|
|
111
|
+
promises.push(fetch(hook.Url, postRequest).then(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
+
var result, getPendingRequest_1, getPendingResult_1, pendingResultLocation;
|
|
113
|
+
var _this = this;
|
|
114
|
+
return __generator(this, function (_a) {
|
|
115
|
+
switch (_a.label) {
|
|
116
|
+
case 0:
|
|
117
|
+
if (!!res.ok) return [3 /*break*/, 2];
|
|
118
|
+
return [4 /*yield*/, Hooks.getJsonResult(res)];
|
|
119
|
+
case 1:
|
|
120
|
+
result = _a.sent();
|
|
121
|
+
throw new Error((result ? " | " + result + " \n\n" : '') + "- Hook " + (index + 1) + "/" + hooks.length + ": " + hook.Title);
|
|
122
|
+
case 2:
|
|
123
|
+
if (!(res.status === 202)) return [3 /*break*/, 4];
|
|
124
|
+
getPendingRequest_1 = {
|
|
125
|
+
method: 'GET',
|
|
126
|
+
headers: hook.Headers || {},
|
|
127
|
+
};
|
|
128
|
+
getPendingResult_1 = function (url) {
|
|
129
|
+
return new Promise(function (resolvePending, reject) {
|
|
130
|
+
setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
131
|
+
var _this = this;
|
|
132
|
+
return __generator(this, function (_a) {
|
|
133
|
+
switch (_a.label) {
|
|
134
|
+
case 0: return [4 /*yield*/, fetch(url, getPendingRequest_1).then(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
135
|
+
var result;
|
|
136
|
+
return __generator(this, function (_a) {
|
|
137
|
+
switch (_a.label) {
|
|
138
|
+
case 0:
|
|
139
|
+
if (!!res.ok) return [3 /*break*/, 2];
|
|
140
|
+
return [4 /*yield*/, Hooks.getJsonResult(res)];
|
|
141
|
+
case 1:
|
|
142
|
+
result = _a.sent();
|
|
143
|
+
reject(new Error((result ? " | " + result + " \n\n" : '') + "- Hook " + (index + 1) + "/" + hooks.length + ": " + hook.Title));
|
|
144
|
+
return [3 /*break*/, 3];
|
|
145
|
+
case 2:
|
|
146
|
+
if (res.status == 202) {
|
|
147
|
+
resolvePending(getPendingResult_1(url));
|
|
148
|
+
}
|
|
149
|
+
_a.label = 3;
|
|
150
|
+
case 3: return [2 /*return*/];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}); })];
|
|
154
|
+
case 1:
|
|
155
|
+
_a.sent();
|
|
156
|
+
return [2 /*return*/];
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}); }, (5000));
|
|
160
|
+
}).catch(function (error) {
|
|
161
|
+
throw error;
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
pendingResultLocation = res.headers.get('location');
|
|
165
|
+
return [4 /*yield*/, getPendingResult_1(pendingResultLocation)];
|
|
166
|
+
case 3:
|
|
167
|
+
_a.sent();
|
|
168
|
+
_a.label = 4;
|
|
169
|
+
case 4: return [2 /*return*/];
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
}); }));
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
_super.prototype.log_info.call(this, 'processHooks', "Method: '" + hook.Method + "' not supported.");
|
|
176
|
+
}
|
|
177
|
+
return [2 /*return*/];
|
|
178
|
+
});
|
|
179
|
+
}); });
|
|
180
|
+
_a.label = 1;
|
|
181
|
+
case 1:
|
|
182
|
+
_a.trys.push([1, 3, , 4]);
|
|
183
|
+
return [4 /*yield*/, Promise.all(promises)];
|
|
184
|
+
case 2:
|
|
185
|
+
_a.sent();
|
|
186
|
+
_super.prototype.scope_ended.call(this);
|
|
187
|
+
return [3 /*break*/, 4];
|
|
188
|
+
case 3:
|
|
189
|
+
error_1 = _a.sent();
|
|
190
|
+
_super.prototype.scope_ended.call(this, error_1);
|
|
191
|
+
throw error_1;
|
|
192
|
+
case 4: return [2 /*return*/];
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
Hooks.getJsonResult = function (res) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
199
|
+
var _this = this;
|
|
200
|
+
return __generator(this, function (_a) {
|
|
201
|
+
return [2 /*return*/, new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
|
|
202
|
+
var jsonResponse, _a;
|
|
203
|
+
return __generator(this, function (_b) {
|
|
204
|
+
switch (_b.label) {
|
|
205
|
+
case 0:
|
|
206
|
+
if (!!res.ok) return [3 /*break*/, 4];
|
|
207
|
+
_b.label = 1;
|
|
208
|
+
case 1:
|
|
209
|
+
_b.trys.push([1, 3, , 4]);
|
|
210
|
+
return [4 /*yield*/, res.json()];
|
|
211
|
+
case 2:
|
|
212
|
+
jsonResponse = _b.sent();
|
|
213
|
+
resolve("" + res.status + (res.statusText ? " - " + res.statusText : '') + (jsonResponse['error'] ? " | " + jsonResponse['error'] : ''));
|
|
214
|
+
return [3 /*break*/, 4];
|
|
215
|
+
case 3:
|
|
216
|
+
_a = _b.sent();
|
|
217
|
+
return [3 /*break*/, 4];
|
|
218
|
+
case 4:
|
|
219
|
+
resolve("" + res.status + (res.statusText ? " - " + res.statusText : ''));
|
|
220
|
+
return [2 /*return*/];
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
}); })];
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
return Hooks;
|
|
228
|
+
}(HandlerBase));
|
|
229
|
+
export { Hooks };
|
|
230
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/handlers/hooks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAK3C;;GAEG;AACH;IAA2B,yBAAW;IACpC;;;;OAIG;IACH,eAAY,MAA2B;eACrC,kBAAM,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACU,gCAAgB,GAA7B,UACE,GAAQ,EACR,KAAe;;;;;;;wBAEf,iBAAM,aAAa,WAAE,CAAA;wBACf,QAAQ,GAAG,EAAE,CAAA;wBAGnB,KAAK,CAAC,OAAO,CAAC,UAAO,IAAI,EAAE,KAAK;;;;gCAC9B,IAAI,IAAI,CAAC,MAA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BACxE,CAAC,EAAA;;;KACH;IACH,YAAC;AAAD,CAAC,AAnHD,CAA2B,WAAW,GAmHrC"}
|
package/lib/handlers/lists.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Web } from '@pnp/sp';
|
|
2
|
-
import { JsomContext } from
|
|
2
|
+
import { JsomContext } from 'spfx-jsom';
|
|
3
3
|
import { IProvisioningConfig } from '../provisioningconfig';
|
|
4
4
|
import { ProvisioningContext } from '../provisioningcontext';
|
|
5
5
|
import { IList } from '../schema';
|
|
@@ -20,93 +20,93 @@ export declare class Lists extends HandlerBase {
|
|
|
20
20
|
/**
|
|
21
21
|
* Creates a new instance of the Lists class
|
|
22
22
|
*
|
|
23
|
-
* @param
|
|
23
|
+
* @param config - Provisioning config
|
|
24
24
|
*/
|
|
25
25
|
constructor(config: IProvisioningConfig);
|
|
26
26
|
/**
|
|
27
27
|
* Provisioning lists
|
|
28
28
|
*
|
|
29
|
-
* @param
|
|
30
|
-
* @param
|
|
29
|
+
* @param web - The web
|
|
30
|
+
* @param lists - The lists to provision
|
|
31
31
|
*/
|
|
32
32
|
ProvisionObjects(web: Web, lists: IList[], context: ProvisioningContext): Promise<void>;
|
|
33
33
|
/**
|
|
34
34
|
* Processes a list
|
|
35
35
|
*
|
|
36
|
-
* @param
|
|
37
|
-
* @param
|
|
36
|
+
* @param web - The web
|
|
37
|
+
* @param lc - The list
|
|
38
38
|
*/
|
|
39
|
-
private processList
|
|
39
|
+
private processList;
|
|
40
40
|
/**
|
|
41
41
|
* Processes content type bindings for a list
|
|
42
42
|
*
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
45
|
-
* @param
|
|
46
|
-
* @param
|
|
43
|
+
* @param lc - The list configuration
|
|
44
|
+
* @param list - The pnp list
|
|
45
|
+
* @param contentTypeBindings - Content type bindings
|
|
46
|
+
* @param removeExisting - Remove existing content type bindings
|
|
47
47
|
*/
|
|
48
|
-
private processContentTypeBindings
|
|
48
|
+
private processContentTypeBindings;
|
|
49
49
|
/**
|
|
50
50
|
* Processes a content type binding for a list
|
|
51
51
|
*
|
|
52
|
-
* @param
|
|
53
|
-
* @param
|
|
54
|
-
* @param
|
|
52
|
+
* @param lc - The list configuration
|
|
53
|
+
* @param list - The pnp list
|
|
54
|
+
* @param contentTypeID - The Content Type ID
|
|
55
55
|
*/
|
|
56
|
-
private processContentTypeBinding
|
|
56
|
+
private processContentTypeBinding;
|
|
57
57
|
/**
|
|
58
58
|
* Processes fields for a list
|
|
59
59
|
*
|
|
60
|
-
* @param
|
|
61
|
-
* @param
|
|
60
|
+
* @param web - The web
|
|
61
|
+
* @param list - The pnp list
|
|
62
62
|
*/
|
|
63
|
-
private processListFields
|
|
63
|
+
private processListFields;
|
|
64
64
|
/**
|
|
65
65
|
* Processes a field for a lit
|
|
66
66
|
*
|
|
67
|
-
* @param
|
|
68
|
-
* @param
|
|
69
|
-
* @param
|
|
67
|
+
* @param web - The web
|
|
68
|
+
* @param lc - The list configuration
|
|
69
|
+
* @param fieldXml - Field XML
|
|
70
70
|
*/
|
|
71
|
-
private processField
|
|
71
|
+
private processField;
|
|
72
72
|
/**
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
private processListFieldRefs
|
|
73
|
+
* Processes field refs for a list
|
|
74
|
+
*
|
|
75
|
+
* @param web - The web
|
|
76
|
+
* @param lc - The list configuration
|
|
77
|
+
*/
|
|
78
|
+
private processListFieldRefs;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
81
|
* Processes a field ref for a list
|
|
82
82
|
*
|
|
83
|
-
* @param
|
|
84
|
-
* @param
|
|
85
|
-
* @param
|
|
86
|
-
* @param
|
|
87
|
-
* @param
|
|
83
|
+
* @param list - The list
|
|
84
|
+
* @param lc - The list configuration
|
|
85
|
+
* @param fieldRef - The list field ref
|
|
86
|
+
* @param listFields - The list fields
|
|
87
|
+
* @param webFields - The web fields
|
|
88
88
|
*/
|
|
89
|
-
private processFieldRef
|
|
89
|
+
private processFieldRef;
|
|
90
90
|
/**
|
|
91
91
|
* Processes views for a list
|
|
92
92
|
*
|
|
93
|
-
* @param
|
|
94
|
-
* @param
|
|
93
|
+
* @param web - The web
|
|
94
|
+
* @param lc - The list configuration
|
|
95
95
|
*/
|
|
96
|
-
private processListViews
|
|
96
|
+
private processListViews;
|
|
97
97
|
/**
|
|
98
98
|
* Processes a view for a list
|
|
99
99
|
*
|
|
100
|
-
* @param
|
|
101
|
-
* @param
|
|
102
|
-
* @param
|
|
100
|
+
* @param web - The web
|
|
101
|
+
* @param lc - The list configuration
|
|
102
|
+
* @param lvc - The view configuration
|
|
103
103
|
*/
|
|
104
|
-
private processView
|
|
104
|
+
private processView;
|
|
105
105
|
/**
|
|
106
106
|
* Processes view fields for a view
|
|
107
107
|
*
|
|
108
|
-
* @param
|
|
109
|
-
* @param
|
|
108
|
+
* @param view - The pnp view
|
|
109
|
+
* @param lvc - The view configuration
|
|
110
110
|
*/
|
|
111
|
-
private processViewFields
|
|
111
|
+
private processViewFields;
|
|
112
112
|
}
|