@kwiz/common 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/helpers/sharepoint.js +10 -10
  2. package/dist/helpers/sharepoint.js.map +1 -1
  3. package/dist/index.d.ts +4 -0
  4. package/dist/index.js +5 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/types/auth.d.ts +5 -3
  7. package/dist/types/auth.js +21 -4
  8. package/dist/types/auth.js.map +1 -1
  9. package/dist/types/sharepoint.types.d.ts +4 -2
  10. package/dist/types/sharepoint.types.js +41 -8
  11. package/dist/types/sharepoint.types.js.map +1 -1
  12. package/dist/utils/auth/discovery.js +11 -11
  13. package/dist/utils/auth/discovery.js.map +1 -1
  14. package/dist/utils/sharepoint.rest/user-search.js +1 -1
  15. package/dist/utils/sharepoint.rest/user-search.js.map +1 -1
  16. package/dist/utils/sharepoint.rest/user.js +8 -8
  17. package/dist/utils/sharepoint.rest/user.js.map +1 -1
  18. package/dist/utils/sharepoint.rest/web.js +5 -0
  19. package/dist/utils/sharepoint.rest/web.js.map +1 -1
  20. package/package.json +1 -1
  21. package/src/index.ts +4 -0
  22. package/src/types/auth.ts +5 -3
  23. package/src/types/sharepoint.types.ts +4 -2
  24. package/src/utils/sharepoint.rest/web.ts +4 -0
  25. package/dist/helpers/index.d.ts +0 -29
  26. package/dist/helpers/index.js +0 -46
  27. package/dist/helpers/index.js.map +0 -1
  28. package/dist/types/graph/index.d.ts +0 -1
  29. package/dist/types/graph/index.js +0 -18
  30. package/dist/types/graph/index.js.map +0 -1
  31. package/dist/types/index.d.ts +0 -13
  32. package/dist/types/index.js +0 -30
  33. package/dist/types/index.js.map +0 -1
  34. package/dist/types/libs/index.d.ts +0 -3
  35. package/dist/types/libs/index.js +0 -20
  36. package/dist/types/libs/index.js.map +0 -1
  37. package/dist/types/locales copy.d.ts +0 -122
  38. package/dist/types/locales copy.js +0 -1
  39. package/dist/types/locales copy.js.map +0 -1
  40. package/dist/types/locales.export.d.ts +0 -1
  41. package/dist/types/locales.export.js +0 -3
  42. package/dist/types/locales.export.js.map +0 -1
  43. package/dist/utils/auth/adal.d.ts +0 -3
  44. package/dist/utils/auth/adal.js +0 -35
  45. package/dist/utils/auth/adal.js.map +0 -1
  46. package/dist/utils/auth/index.d.ts +0 -2
  47. package/dist/utils/auth/index.js +0 -19
  48. package/dist/utils/auth/index.js.map +0 -1
  49. package/dist/utils/auth/msal.d.ts +0 -4
  50. package/dist/utils/auth/msal.js +0 -59
  51. package/dist/utils/auth/msal.js.map +0 -1
  52. package/dist/utils/axios.d.ts +0 -6
  53. package/dist/utils/axios.js +0 -30
  54. package/dist/utils/axios.js.map +0 -1
  55. package/dist/utils/index.d.ts +0 -14
  56. package/dist/utils/index.js +0 -32
  57. package/dist/utils/index.js.map +0 -1
  58. package/dist/utils/sharepoint.rest/index.d.ts +0 -11
  59. package/dist/utils/sharepoint.rest/index.js +0 -28
  60. package/dist/utils/sharepoint.rest/index.js.map +0 -1
@@ -1,122 +0,0 @@
1
- type SysNumberFormatType = {
2
- CurrencyDecimalDigits: number;
3
- CurrencyDecimalSeparator: string;
4
- IsReadOnly: boolean;
5
- CurrencyGroupSizes: number[];
6
- NumberGroupSizes: number[];
7
- PercentGroupSizes: number[];
8
- CurrencyGroupSeparator: string;
9
- CurrencySymbol: string;
10
- NaNSymbol: string;
11
- CurrencyNegativePattern: number;
12
- NumberNegativePattern: number;
13
- PercentPositivePattern: number;
14
- PercentNegativePattern: number;
15
- NegativeInfinitySymbol: string;
16
- NegativeSign: string;
17
- NumberDecimalDigits: number;
18
- NumberDecimalSeparator: string;
19
- NumberGroupSeparator: string;
20
- CurrencyPositivePattern: number;
21
- PositiveInfinitySymbol: string;
22
- PositiveSign: string;
23
- PercentDecimalDigits: number;
24
- PercentDecimalSeparator: string;
25
- PercentGroupSeparator: string;
26
- PercentSymbol: string;
27
- PerMilleSymbol: string;
28
- NativeDigits: string[];
29
- DigitSubstitution: number;
30
- };
31
- type SysDateFormatType = {
32
- AMDesignator: string;
33
- Calendar: {
34
- MinSupportedDateTime: string;
35
- MaxSupportedDateTime: string;
36
- AlgorithmType: number;
37
- CalendarType: number;
38
- Eras: number[];
39
- TwoDigitYearMax: number;
40
- IsReadOnly: boolean;
41
- };
42
- DateSeparator: string;
43
- FirstDayOfWeek: number;
44
- CalendarWeekRule: number;
45
- FullDateTimePattern: string;
46
- LongDatePattern: string;
47
- LongTimePattern: string;
48
- MonthDayPattern: string;
49
- PMDesignator: string;
50
- RFC1123Pattern: string;
51
- ShortDatePattern: string;
52
- ShortTimePattern: string;
53
- SortableDateTimePattern: string;
54
- TimeSeparator: string;
55
- UniversalSortableDateTimePattern: string;
56
- YearMonthPattern: string;
57
- AbbreviatedDayNames: string[];
58
- ShortestDayNames: string[];
59
- DayNames: string[];
60
- AbbreviatedMonthNames: string[];
61
- MonthNames: string[];
62
- IsReadOnly: boolean;
63
- NativeCalendarName: string;
64
- AbbreviatedMonthGenitiveNames: string[];
65
- MonthGenitiveNames: string[];
66
- eras: any[];
67
- };
68
- type CultureInfoType = {
69
- LCID: number;
70
- name: string;
71
- numberFormat: SysNumberFormatType;
72
- dateTimeFormat: SysDateFormatType;
73
- ShortDatePattern?: string;
74
- ShortTimePattern?: string;
75
- DateSeparator?: string;
76
- TimeSeparator?: string;
77
- CurrencySymbol?: string;
78
- PercentSymbol?: string;
79
- NumberDecimalSeparator?: string;
80
- NumberGroupSeparator?: string;
81
- };
82
- interface Date {
83
- /**
84
- * Formats a date by using the invariant (culture-independent) culture.
85
- */
86
- format(format: string): string;
87
- }
88
- interface IKLocales {
89
- getCultureNameOrLCIDFromContextInfo(s: number): string | number;
90
- GetCulture(cultureNameOrLCID: string | number): CultureInfoType;
91
- GetCurrentCulture(): CultureInfoType;
92
- SetCurrentCulture(culture: CultureInfoType): any;
93
- ParseDate(strDate: string, culture?: CultureInfoType): Date;
94
- /** default format: date only */
95
- DateToString(dateObj: Date, culture: CultureInfoType, format?: {
96
- includeDate?: boolean;
97
- includeTime?: boolean;
98
- }): string;
99
- ParseNumber(strNumber: string, culture?: CultureInfoType): number;
100
- /** isPercentAsWholeNumbers means a percent number that is 1 to 100, not 0-1. will not multiply it by 100. */
101
- NumberToString(num: number,
102
- /** current web cutlure, default=GetCurrentCulture */
103
- webCulture?: CultureInfoType, numFormat?: {
104
- /** default=false */
105
- includeGroupSeparator?: boolean;
106
- /** default=false */
107
- isPercent?: boolean;
108
- /** isPercentAsWholeNumbers means a percent number that is 1 to 100, not 0-1. will not multiply it by 100, default=false */
109
- isPercentAsWholeNumbers?: boolean;
110
- /** default=false */
111
- isCurrency?: boolean;
112
- /** default=webCulture.LCID */
113
- currencyLocaleId?: number;
114
- /** default=false */
115
- numberOnly?: boolean;
116
- }): string;
117
- IsValidNumber(strNumber: string, culture: CultureInfoType): boolean;
118
- }
119
- interface IKWizComGlobals {
120
- kLocales?: IKLocales;
121
- }
122
- declare var kLocales: IKLocales;
@@ -1 +0,0 @@
1
- //# sourceMappingURL=locales%20copy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"locales copy.js","sourceRoot":"","sources":["../../src/types/locales copy.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export type typeIKLocales = IKLocales;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=locales.export.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"locales.export.js","sourceRoot":"","sources":["../../src/types/locales.export.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { ITenantInfo } from "../_dependencies";
2
- /** client secret not supported by SharePoint, must use certificate */
3
- export declare function GetADALToken(tenantInfo: ITenantInfo, scope: string): Promise<string>;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetADALToken = void 0;
4
- const adal_node_1 = require("adal-node");
5
- const _dependencies_1 = require("../_dependencies");
6
- const common_1 = require("./common");
7
- //https://johnliu.net/blog/2016/5/azure-functions-js-and-app-only-updates-to-sharepoint-online
8
- var contexts = {};
9
- function GetContext(tenantInfo) {
10
- let key = tenantInfo.idOrName;
11
- if (!contexts[key]) {
12
- contexts[key] = new adal_node_1.AuthenticationContext(tenantInfo.authorityUrl);
13
- }
14
- return contexts[key];
15
- }
16
- /** client secret not supported by SharePoint, must use certificate */
17
- async function GetADALToken(tenantInfo, scope) {
18
- return new Promise((resolve, reject) => {
19
- var callback = (error, response) => {
20
- if (error)
21
- reject(response.error);
22
- else
23
- resolve(response.accessToken);
24
- };
25
- const authContext = (0, common_1.$AuthConfig)();
26
- var authenticationContex = GetContext(tenantInfo);
27
- (0, _dependencies_1.isNullOrUndefined)(authContext)
28
- ? reject("You must call ADALConfig before using this function")
29
- : authContext.authenticationMode === _dependencies_1.AuthenticationModes.clientSecret
30
- ? authenticationContex.acquireTokenWithClientCredentials(scope, authContext.clientId, authContext.clientSecret, callback)
31
- : authenticationContex.acquireTokenWithClientCertificate(scope, authContext.clientId, authContext.privateKey, authContext.thumbprint, callback);
32
- });
33
- }
34
- exports.GetADALToken = GetADALToken;
35
- //# sourceMappingURL=adal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"adal.js","sourceRoot":"","sources":["../../../src/utils/auth/adal.ts"],"names":[],"mappings":";;;AAAA,yCAAgF;AAChF,oDAAuF;AACvF,qCAAuC;AAEvC,8FAA8F;AAE9F,IAAI,QAAQ,GAAgD,EAAE,CAAC;AAE/D,SAAS,UAAU,CAAC,UAAuB;IACvC,IAAI,GAAG,GAAG,UAAU,CAAC,QAAQ,CAAC;IAC9B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACjB,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,iCAAqB,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC;AAED,sEAAsE;AAC/D,KAAK,UAAU,YAAY,CAAC,UAAuB,EAAE,KAAa;IACrE,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC3C,IAAI,QAAQ,GAAG,CAAC,KAAY,EAAE,QAAuC,EAAE,EAAE;YACrE,IAAI,KAAK;gBACL,MAAM,CAAE,QAA0B,CAAC,KAAK,CAAC,CAAC;;gBAE1C,OAAO,CAAE,QAA0B,CAAC,WAAW,CAAC,CAAC;QACzD,CAAC,CAAA;QAED,MAAM,WAAW,GAAG,IAAA,oBAAW,GAAE,CAAC;QAClC,IAAI,oBAAoB,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;QAClD,IAAA,iCAAiB,EAAC,WAAW,CAAC;YAC1B,CAAC,CAAC,MAAM,CAAC,qDAAqD,CAAC;YAC/D,CAAC,CAAC,WAAW,CAAC,kBAAkB,KAAK,mCAAmB,CAAC,YAAY;gBACjE,CAAC,CAAC,oBAAoB,CAAC,iCAAiC,CAAC,KAAK,EAC1D,WAAW,CAAC,QAAQ,EAAE,WAAW,CAAC,YAAY,EAAE,QAAQ,CAAC;gBAC7D,CAAC,CAAC,oBAAoB,CAAC,iCAAiC,CAAC,KAAK,EAC1D,WAAW,CAAC,QAAQ,EAAE,WAAW,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAChG,CAAC,CAAC,CAAC;AACP,CAAC;AAnBD,oCAmBC"}
@@ -1,2 +0,0 @@
1
- export * from "./common";
2
- export * from "./discovery";
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./common"), exports);
18
- __exportStar(require("./discovery"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B"}
@@ -1,4 +0,0 @@
1
- import { IRestOptions, ITenantInfo } from "../_dependencies";
2
- /** client secret not supported by SharePoint, must use certificate */
3
- export declare function GetMSALToken(tenantInfo: ITenantInfo, scope: string): Promise<string>;
4
- export declare function GetMSALRestOptions(tenantInfo: ITenantInfo, siteUrl: string): Promise<IRestOptions>;
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetMSALRestOptions = exports.GetMSALToken = void 0;
4
- const msal_node_1 = require("@azure/msal-node");
5
- const _dependencies_1 = require("../_dependencies");
6
- const common_1 = require("./common");
7
- //find tenant id? https://login.microsoftonline.com/kwizcom.onmicrosoft.com/.well-known/openid-configuration
8
- //https://stackoverflow.com/questions/54771270/msal-ad-token-not-valid-with-sharepoint-online-csom
9
- var apps = {};
10
- function GetApp(tenantInfo, authContext) {
11
- let key = `${tenantInfo.idOrName}|${authContext.authenticationMode}`;
12
- if (!apps[key]) {
13
- authContext.authenticationMode === _dependencies_1.AuthenticationModes.clientSecret
14
- ? apps[key] = new msal_node_1.ConfidentialClientApplication({
15
- auth: {
16
- clientId: authContext.clientId,
17
- authority: tenantInfo.authorityUrl,
18
- clientSecret: authContext.clientSecret
19
- },
20
- })
21
- : apps[key] = new msal_node_1.ConfidentialClientApplication({
22
- auth: {
23
- clientId: authContext.clientId,
24
- authority: tenantInfo.authorityUrl,
25
- clientCertificate: {
26
- thumbprint: authContext.thumbprint,
27
- privateKey: authContext.privateKey
28
- }
29
- },
30
- });
31
- }
32
- return apps[key];
33
- }
34
- /** client secret not supported by SharePoint, must use certificate */
35
- async function GetMSALToken(tenantInfo, scope) {
36
- const authContext = (0, common_1.$AuthConfig)();
37
- if ((0, _dependencies_1.isNullOrUndefined)(authContext))
38
- throw Error("You must call ADALConfig before using this function");
39
- let token = await GetApp(tenantInfo, authContext).acquireTokenByClientCredential({
40
- scopes: [`${scope}/.default`]
41
- });
42
- return token.accessToken;
43
- }
44
- exports.GetMSALToken = GetMSALToken;
45
- function getSiteScope(siteUrl) {
46
- return `https://${new URL(siteUrl).hostname}`;
47
- }
48
- async function GetMSALRestOptions(tenantInfo, siteUrl) {
49
- let token = await GetMSALToken(tenantInfo, getSiteScope(siteUrl));
50
- const options = {
51
- jsonMetadata: _dependencies_1.jsonTypes.nometadata,
52
- headers: {
53
- Authorization: `Bearer ${token}`
54
- }
55
- };
56
- return options;
57
- }
58
- exports.GetMSALRestOptions = GetMSALRestOptions;
59
- //# sourceMappingURL=msal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msal.js","sourceRoot":"","sources":["../../../src/utils/auth/msal.ts"],"names":[],"mappings":";;;AAAA,gDAAiE;AACjE,oDAAgH;AAChH,qCAAwD;AACxD,4GAA4G;AAG5G,kGAAkG;AAElG,IAAI,IAAI,GAAwD,EAAE,CAAC;AAEnE,SAAS,MAAM,CAAC,UAAuB,EAAE,WAA4B;IAEjE,IAAI,GAAG,GAAG,GAAG,UAAU,CAAC,QAAQ,IAAI,WAAW,CAAC,kBAAkB,EAAE,CAAA;IACpE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACb,WAAW,CAAC,kBAAkB,KAAK,mCAAmB,CAAC,YAAY;YAC/D,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,yCAA6B,CAAC;gBAC5C,IAAI,EAAE;oBACF,QAAQ,EAAE,WAAW,CAAC,QAAQ;oBAC9B,SAAS,EAAE,UAAU,CAAC,YAAY;oBAClC,YAAY,EAAE,WAAW,CAAC,YAAY;iBACzC;aAEJ,CAAC;YACF,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,yCAA6B,CAAC;gBAC5C,IAAI,EAAE;oBACF,QAAQ,EAAE,WAAW,CAAC,QAAQ;oBAC9B,SAAS,EAAE,UAAU,CAAC,YAAY;oBAClC,iBAAiB,EAAE;wBACf,UAAU,EAAE,WAAW,CAAC,UAAU;wBAClC,UAAU,EAAE,WAAW,CAAC,UAAU;qBACrC;iBACJ;aAEJ,CAAC,CAAC;IACX,CAAC;IACD,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC;AAED,sEAAsE;AAC/D,KAAK,UAAU,YAAY,CAAC,UAAuB,EAAE,KAAa;IACrE,MAAM,WAAW,GAAG,IAAA,oBAAW,GAAE,CAAC;IAClC,IAAI,IAAA,iCAAiB,EAAC,WAAW,CAAC;QAC9B,MAAM,KAAK,CAAC,qDAAqD,CAAC,CAAC;IAEvE,IAAI,KAAK,GAAG,MAAM,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,8BAA8B,CAAC;QAC7E,MAAM,EAAE,CAAC,GAAG,KAAK,WAAW,CAAC;KAChC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC,WAAW,CAAC;AAC7B,CAAC;AATD,oCASC;AAED,SAAS,YAAY,CAAC,OAAe;IACjC,OAAO,WAAW,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;AAClD,CAAC;AAEM,KAAK,UAAU,kBAAkB,CAAC,UAAuB,EAAE,OAAe;IAC7E,IAAI,KAAK,GAAG,MAAM,YAAY,CAAC,UAAU,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;IAElE,MAAM,OAAO,GAAiB;QAC1B,YAAY,EAAE,yBAAS,CAAC,UAAU;QAClC,OAAO,EAAE;YACL,aAAa,EAAE,UAAU,KAAK,EAAE;SACnC;KACJ,CAAC;IACF,OAAO,OAAO,CAAC;AACnB,CAAC;AAVD,gDAUC"}
@@ -1,6 +0,0 @@
1
- type axiosConfigOptions = {
2
- contantType?: "application/json" | "application/json; odata=nometadata" | "application/xml";
3
- };
4
- export declare function getAxiosConfigBearer(token: string, options?: axiosConfigOptions): AxiosRequestConfig<any>;
5
- export declare function getAxiosConfig(token?: string, options?: axiosConfigOptions): AxiosRequestConfig<any>;
6
- export {};
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAxiosConfig = exports.getAxiosConfigBearer = void 0;
4
- const https_1 = require("https");
5
- const _modules_1 = require("../../sync/_modules");
6
- function getAxiosConfigBearer(token, options) {
7
- return getAxiosConfig(`Bearer ${token}`, options);
8
- }
9
- exports.getAxiosConfigBearer = getAxiosConfigBearer;
10
- function getAxiosConfig(token, options) {
11
- //allow self sign ssl certificates
12
- https_1.globalAgent.options.rejectUnauthorized = false;
13
- const config = {
14
- httpAgent: new https_1.Agent({
15
- rejectUnauthorized: false
16
- }),
17
- headers: {}
18
- };
19
- if (!(0, _modules_1.isNullOrEmptyString)(token))
20
- config.headers.Authorization = token;
21
- if (options) {
22
- if (!(0, _modules_1.isNullOrEmptyString)(options.contantType)) {
23
- config.headers["Content-Type"] = options.contantType;
24
- config.headers["Accept"] = options.contantType;
25
- }
26
- }
27
- return config;
28
- }
29
- exports.getAxiosConfig = getAxiosConfig;
30
- //# sourceMappingURL=axios.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axios.js","sourceRoot":"","sources":["../../src/utils/axios.ts"],"names":[],"mappings":";;;AACA,iCAA2C;AAC3C,kDAA0D;AAK1D,SAAgB,oBAAoB,CAAC,KAAa,EAAE,OAA4B;IAC5E,OAAO,cAAc,CAAC,UAAU,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAFD,oDAEC;AAED,SAAgB,cAAc,CAAC,KAAc,EAAE,OAA4B;IACvE,kCAAkC;IAClC,mBAAW,CAAC,OAAO,CAAC,kBAAkB,GAAG,KAAK,CAAC;IAC/C,MAAM,MAAM,GAA4B;QACpC,SAAS,EAAE,IAAI,aAAK,CAAC;YACjB,kBAAkB,EAAE,KAAK;SAC5B,CAAC;QACF,OAAO,EAAE,EAAE;KACd,CAAC;IAEF,IAAI,CAAC,IAAA,8BAAmB,EAAC,KAAK,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC;IAEzC,IAAI,OAAO,EAAE,CAAC;QACV,IAAI,CAAC,IAAA,8BAAmB,EAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;YAC5C,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;YACrD,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;QACnD,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AApBD,wCAoBC"}
@@ -1,14 +0,0 @@
1
- import { default as _script } from "./script";
2
- import { default as _sod } from "./sod";
3
- export * from './base64';
4
- export * from "./consolelogger";
5
- export * from './date';
6
- export * from './emails';
7
- export * from './knownscript';
8
- export * from './localstoragecache';
9
- export * from './rest';
10
- export * from './sharepoint.rest';
11
- export * from './sod';
12
- export * from './auth';
13
- export declare const script: typeof _script;
14
- export declare const Sod: typeof _sod;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Sod = exports.script = void 0;
18
- const script_1 = require("./script");
19
- const sod_1 = require("./sod");
20
- __exportStar(require("./base64"), exports);
21
- __exportStar(require("./consolelogger"), exports);
22
- __exportStar(require("./date"), exports);
23
- __exportStar(require("./emails"), exports);
24
- __exportStar(require("./knownscript"), exports);
25
- __exportStar(require("./localstoragecache"), exports);
26
- __exportStar(require("./rest"), exports);
27
- __exportStar(require("./sharepoint.rest"), exports);
28
- __exportStar(require("./sod"), exports);
29
- __exportStar(require("./auth"), exports);
30
- exports.script = script_1.default;
31
- exports.Sod = sod_1.default;
32
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAA8C;AAC9C,+BAAwC;AACxC,2CAAyB;AACzB,kDAAgC;AAChC,yCAAuB;AACvB,2CAAyB;AACzB,gDAA8B;AAC9B,sDAAoC;AACpC,yCAAuB;AACvB,oDAAkC;AAClC,wCAAsB;AACtB,yCAAuB;AACV,QAAA,MAAM,GAAG,gBAAO,CAAC;AACjB,QAAA,GAAG,GAAG,aAAI,CAAC"}
@@ -1,11 +0,0 @@
1
- export * from "./common";
2
- export * from "./date";
3
- export * from "./file.folder";
4
- export * from "./item";
5
- export * from "./list";
6
- export * from "./listutils/GetListItemsByCaml";
7
- export * from "./listutils/GetListItemsById";
8
- export * from "./listutils/common";
9
- export * from "./user";
10
- export * from "./user-search";
11
- export * from "./web";
@@ -1,28 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./common"), exports);
18
- __exportStar(require("./date"), exports);
19
- __exportStar(require("./file.folder"), exports);
20
- __exportStar(require("./item"), exports);
21
- __exportStar(require("./list"), exports);
22
- __exportStar(require("./listutils/GetListItemsByCaml"), exports);
23
- __exportStar(require("./listutils/GetListItemsById"), exports);
24
- __exportStar(require("./listutils/common"), exports);
25
- __exportStar(require("./user"), exports);
26
- __exportStar(require("./user-search"), exports);
27
- __exportStar(require("./web"), exports);
28
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/sharepoint.rest/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB;AACvB,gDAA8B;AAC9B,yCAAuB;AACvB,yCAAuB;AACvB,iEAA+C;AAC/C,+DAA6C;AAC7C,qDAAmC;AACnC,yCAAuB;AACvB,gDAA8B;AAC9B,wCAAsB"}