@pnp/graph 2.10.0 → 2.13.0

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 (151) hide show
  1. package/LICENSE +25 -25
  2. package/attachments/conversations.d.ts +9 -9
  3. package/attachments/conversations.js +4 -4
  4. package/attachments/index.d.ts +2 -2
  5. package/attachments/index.js +2 -2
  6. package/attachments/types.d.ts +26 -26
  7. package/attachments/types.js +46 -46
  8. package/batch.d.ts +17 -17
  9. package/batch.js +176 -176
  10. package/calendars/funcs.d.ts +36 -36
  11. package/calendars/funcs.js +43 -43
  12. package/calendars/groups.d.ts +13 -13
  13. package/calendars/groups.js +5 -5
  14. package/calendars/index.d.ts +4 -4
  15. package/calendars/index.js +3 -3
  16. package/calendars/types.d.ts +52 -52
  17. package/calendars/types.js +98 -98
  18. package/calendars/users.d.ts +22 -22
  19. package/calendars/users.js +9 -9
  20. package/cloud-communications/index.d.ts +8 -8
  21. package/cloud-communications/index.js +14 -14
  22. package/cloud-communications/types.d.ts +21 -21
  23. package/cloud-communications/types.js +46 -46
  24. package/cloud-communications/users.d.ts +9 -9
  25. package/cloud-communications/users.js +4 -4
  26. package/contacts/index.d.ts +2 -2
  27. package/contacts/index.js +2 -2
  28. package/contacts/types.d.ts +75 -75
  29. package/contacts/types.js +145 -145
  30. package/contacts/users.d.ts +11 -11
  31. package/contacts/users.js +5 -5
  32. package/conversations/groups.d.ts +13 -13
  33. package/conversations/groups.js +6 -6
  34. package/conversations/index.d.ts +2 -2
  35. package/conversations/index.js +2 -2
  36. package/conversations/types.d.ts +103 -103
  37. package/conversations/types.js +173 -173
  38. package/decorators.d.ts +103 -103
  39. package/decorators.js +138 -138
  40. package/directory-objects/index.d.ts +7 -7
  41. package/directory-objects/index.js +13 -13
  42. package/directory-objects/types.d.ts +67 -67
  43. package/directory-objects/types.js +96 -96
  44. package/graphhttpclient.d.ts +13 -13
  45. package/graphhttpclient.js +95 -95
  46. package/graphlibconfig.d.ts +21 -21
  47. package/graphlibconfig.js +19 -19
  48. package/graphqueryable.d.ts +156 -156
  49. package/graphqueryable.js +247 -247
  50. package/groups/index.d.ts +7 -7
  51. package/groups/index.js +13 -13
  52. package/groups/types.d.ts +81 -81
  53. package/groups/types.js +137 -137
  54. package/index.d.ts +8 -8
  55. package/index.js +7 -7
  56. package/insights/index.d.ts +2 -2
  57. package/insights/index.js +2 -2
  58. package/insights/types.d.ts +76 -76
  59. package/insights/types.js +162 -162
  60. package/insights/users.d.ts +9 -9
  61. package/insights/users.js +4 -4
  62. package/invitations/index.d.ts +7 -7
  63. package/invitations/index.js +13 -13
  64. package/invitations/types.d.ts +25 -25
  65. package/invitations/types.js +44 -44
  66. package/members/groups.d.ts +11 -11
  67. package/members/groups.js +5 -5
  68. package/members/index.d.ts +2 -2
  69. package/members/index.js +2 -2
  70. package/members/types.d.ts +31 -31
  71. package/members/types.js +49 -49
  72. package/messages/index.d.ts +2 -2
  73. package/messages/index.js +2 -2
  74. package/messages/types.d.ts +43 -43
  75. package/messages/types.js +77 -77
  76. package/messages/users.d.ts +15 -15
  77. package/messages/users.js +10 -10
  78. package/onedrive/index.d.ts +2 -2
  79. package/onedrive/index.js +2 -2
  80. package/onedrive/types.d.ts +95 -95
  81. package/onedrive/types.js +241 -241
  82. package/onedrive/users.d.ts +11 -11
  83. package/onedrive/users.js +5 -5
  84. package/onenote/index.d.ts +2 -2
  85. package/onenote/index.js +2 -2
  86. package/onenote/types.d.ts +76 -76
  87. package/onenote/types.js +149 -149
  88. package/onenote/users.d.ts +9 -9
  89. package/onenote/users.js +4 -4
  90. package/operations.d.ts +8 -8
  91. package/operations.js +41 -41
  92. package/outlook/index.d.ts +2 -2
  93. package/outlook/index.js +2 -2
  94. package/outlook/types.d.ts +40 -40
  95. package/outlook/types.js +76 -76
  96. package/outlook/users.d.ts +9 -9
  97. package/outlook/users.js +4 -4
  98. package/package.json +5 -5
  99. package/photos/groups.d.ts +9 -9
  100. package/photos/groups.js +4 -4
  101. package/photos/index.d.ts +3 -3
  102. package/photos/index.js +3 -3
  103. package/photos/types.d.ts +21 -21
  104. package/photos/types.js +37 -37
  105. package/photos/users.d.ts +9 -9
  106. package/photos/users.js +4 -4
  107. package/planner/groups.d.ts +9 -9
  108. package/planner/groups.js +4 -4
  109. package/planner/index.d.ts +9 -9
  110. package/planner/index.js +15 -15
  111. package/planner/types.d.ts +117 -117
  112. package/planner/types.js +291 -291
  113. package/planner/users.d.ts +9 -9
  114. package/planner/users.js +4 -4
  115. package/presets/all.d.ts +38 -38
  116. package/presets/all.js +38 -38
  117. package/readme.md +21 -21
  118. package/rest.d.ts +30 -30
  119. package/rest.js +57 -57
  120. package/search/index.d.ts +7 -7
  121. package/search/index.js +18 -18
  122. package/search/types.d.ts +16 -16
  123. package/search/types.js +23 -23
  124. package/sites/group.d.ts +9 -9
  125. package/sites/group.js +4 -4
  126. package/sites/index.d.ts +2 -2
  127. package/sites/index.js +2 -2
  128. package/sites/types.d.ts +23 -23
  129. package/sites/types.js +47 -47
  130. package/subscriptions/index.d.ts +7 -7
  131. package/subscriptions/index.js +13 -13
  132. package/subscriptions/types.d.ts +37 -37
  133. package/subscriptions/types.js +72 -72
  134. package/teams/index.d.ts +19 -19
  135. package/teams/index.js +35 -35
  136. package/teams/types.d.ts +112 -111
  137. package/teams/types.d.ts.map +1 -1
  138. package/teams/types.js +261 -254
  139. package/teams/types.js.map +1 -1
  140. package/teams/users.d.ts +9 -9
  141. package/teams/users.js +4 -4
  142. package/types.d.ts +9 -9
  143. package/types.js +19 -19
  144. package/users/index.d.ts +8 -8
  145. package/users/index.js +23 -23
  146. package/users/types.d.ts +35 -35
  147. package/users/types.js +82 -82
  148. package/utils/toabsoluteurl.d.ts +7 -7
  149. package/utils/toabsoluteurl.js +48 -48
  150. package/utils/type.d.ts +3 -3
  151. package/utils/type.js +3 -3
package/insights/types.js CHANGED
@@ -1,163 +1,163 @@
1
- import { __decorate, __extends } from "tslib";
2
- import { _GraphQueryableInstance, _GraphQueryableCollection, graphInvokableFactory, } from "../graphqueryable.js";
3
- import { defaultPath, getById } from "../decorators.js";
4
- /**
5
- * Represents a insights entity
6
- */
7
- var _Insights = /** @class */ (function (_super) {
8
- __extends(_Insights, _super);
9
- function _Insights() {
10
- return _super !== null && _super.apply(this, arguments) || this;
11
- }
12
- Object.defineProperty(_Insights.prototype, "trending", {
13
- get: function () {
14
- return TrendingInsights(this);
15
- },
16
- enumerable: false,
17
- configurable: true
18
- });
19
- Object.defineProperty(_Insights.prototype, "used", {
20
- get: function () {
21
- return UsedInsights(this);
22
- },
23
- enumerable: false,
24
- configurable: true
25
- });
26
- Object.defineProperty(_Insights.prototype, "shared", {
27
- get: function () {
28
- return SharedInsights(this);
29
- },
30
- enumerable: false,
31
- configurable: true
32
- });
33
- _Insights = __decorate([
34
- defaultPath("insights")
35
- ], _Insights);
36
- return _Insights;
37
- }(_GraphQueryableInstance));
38
- export { _Insights };
39
- export var Insights = graphInvokableFactory(_Insights);
40
- /**
41
- * Describes a Trending Insight instance
42
- */
43
- var _TrendingInsight = /** @class */ (function (_super) {
44
- __extends(_TrendingInsight, _super);
45
- function _TrendingInsight() {
46
- return _super !== null && _super.apply(this, arguments) || this;
47
- }
48
- Object.defineProperty(_TrendingInsight.prototype, "resource", {
49
- get: function () {
50
- return Resource(this);
51
- },
52
- enumerable: false,
53
- configurable: true
54
- });
55
- return _TrendingInsight;
56
- }(_GraphQueryableInstance));
57
- export { _TrendingInsight };
58
- export var TrendingInsight = graphInvokableFactory(_TrendingInsight);
59
- /**
60
- * Describes a collection of Trending Insight objects
61
- *
62
- */
63
- var _TrendingInsights = /** @class */ (function (_super) {
64
- __extends(_TrendingInsights, _super);
65
- function _TrendingInsights() {
66
- return _super !== null && _super.apply(this, arguments) || this;
67
- }
68
- _TrendingInsights = __decorate([
69
- defaultPath("trending"),
70
- getById(TrendingInsight)
71
- ], _TrendingInsights);
72
- return _TrendingInsights;
73
- }(_GraphQueryableCollection));
74
- export { _TrendingInsights };
75
- export var TrendingInsights = graphInvokableFactory(_TrendingInsights);
76
- /**
77
- * Describes a Used Insight instance
78
- */
79
- var _UsedInsight = /** @class */ (function (_super) {
80
- __extends(_UsedInsight, _super);
81
- function _UsedInsight() {
82
- return _super !== null && _super.apply(this, arguments) || this;
83
- }
84
- Object.defineProperty(_UsedInsight.prototype, "resource", {
85
- get: function () {
86
- return Resource(this);
87
- },
88
- enumerable: false,
89
- configurable: true
90
- });
91
- return _UsedInsight;
92
- }(_GraphQueryableInstance));
93
- export { _UsedInsight };
94
- export var UsedInsight = graphInvokableFactory(_UsedInsight);
95
- /**
96
- * Describes a collection of Used Insight objects
97
- *
98
- */
99
- var _UsedInsights = /** @class */ (function (_super) {
100
- __extends(_UsedInsights, _super);
101
- function _UsedInsights() {
102
- return _super !== null && _super.apply(this, arguments) || this;
103
- }
104
- _UsedInsights = __decorate([
105
- defaultPath("used"),
106
- getById(UsedInsight)
107
- ], _UsedInsights);
108
- return _UsedInsights;
109
- }(_GraphQueryableCollection));
110
- export { _UsedInsights };
111
- export var UsedInsights = graphInvokableFactory(_UsedInsights);
112
- /**
113
- * Describes a Shared Insight instance
114
- */
115
- var _SharedInsight = /** @class */ (function (_super) {
116
- __extends(_SharedInsight, _super);
117
- function _SharedInsight() {
118
- return _super !== null && _super.apply(this, arguments) || this;
119
- }
120
- Object.defineProperty(_SharedInsight.prototype, "resource", {
121
- get: function () {
122
- return Resource(this);
123
- },
124
- enumerable: false,
125
- configurable: true
126
- });
127
- return _SharedInsight;
128
- }(_GraphQueryableInstance));
129
- export { _SharedInsight };
130
- export var SharedInsight = graphInvokableFactory(_SharedInsight);
131
- /**
132
- * Describes a collection of Shared Insight objects
133
- *
134
- */
135
- var _SharedInsights = /** @class */ (function (_super) {
136
- __extends(_SharedInsights, _super);
137
- function _SharedInsights() {
138
- return _super !== null && _super.apply(this, arguments) || this;
139
- }
140
- _SharedInsights = __decorate([
141
- defaultPath("shared"),
142
- getById(SharedInsight)
143
- ], _SharedInsights);
144
- return _SharedInsights;
145
- }(_GraphQueryableCollection));
146
- export { _SharedInsights };
147
- export var SharedInsights = graphInvokableFactory(_SharedInsights);
148
- /**
149
- * Describes a Resource Entity instance
150
- */
151
- var _Resource = /** @class */ (function (_super) {
152
- __extends(_Resource, _super);
153
- function _Resource() {
154
- return _super !== null && _super.apply(this, arguments) || this;
155
- }
156
- _Resource = __decorate([
157
- defaultPath("resource")
158
- ], _Resource);
159
- return _Resource;
160
- }(_GraphQueryableInstance));
161
- export { _Resource };
162
- export var Resource = graphInvokableFactory(_Resource);
1
+ import { __decorate, __extends } from "tslib";
2
+ import { _GraphQueryableInstance, _GraphQueryableCollection, graphInvokableFactory, } from "../graphqueryable.js";
3
+ import { defaultPath, getById } from "../decorators.js";
4
+ /**
5
+ * Represents a insights entity
6
+ */
7
+ var _Insights = /** @class */ (function (_super) {
8
+ __extends(_Insights, _super);
9
+ function _Insights() {
10
+ return _super !== null && _super.apply(this, arguments) || this;
11
+ }
12
+ Object.defineProperty(_Insights.prototype, "trending", {
13
+ get: function () {
14
+ return TrendingInsights(this);
15
+ },
16
+ enumerable: false,
17
+ configurable: true
18
+ });
19
+ Object.defineProperty(_Insights.prototype, "used", {
20
+ get: function () {
21
+ return UsedInsights(this);
22
+ },
23
+ enumerable: false,
24
+ configurable: true
25
+ });
26
+ Object.defineProperty(_Insights.prototype, "shared", {
27
+ get: function () {
28
+ return SharedInsights(this);
29
+ },
30
+ enumerable: false,
31
+ configurable: true
32
+ });
33
+ _Insights = __decorate([
34
+ defaultPath("insights")
35
+ ], _Insights);
36
+ return _Insights;
37
+ }(_GraphQueryableInstance));
38
+ export { _Insights };
39
+ export var Insights = graphInvokableFactory(_Insights);
40
+ /**
41
+ * Describes a Trending Insight instance
42
+ */
43
+ var _TrendingInsight = /** @class */ (function (_super) {
44
+ __extends(_TrendingInsight, _super);
45
+ function _TrendingInsight() {
46
+ return _super !== null && _super.apply(this, arguments) || this;
47
+ }
48
+ Object.defineProperty(_TrendingInsight.prototype, "resource", {
49
+ get: function () {
50
+ return Resource(this);
51
+ },
52
+ enumerable: false,
53
+ configurable: true
54
+ });
55
+ return _TrendingInsight;
56
+ }(_GraphQueryableInstance));
57
+ export { _TrendingInsight };
58
+ export var TrendingInsight = graphInvokableFactory(_TrendingInsight);
59
+ /**
60
+ * Describes a collection of Trending Insight objects
61
+ *
62
+ */
63
+ var _TrendingInsights = /** @class */ (function (_super) {
64
+ __extends(_TrendingInsights, _super);
65
+ function _TrendingInsights() {
66
+ return _super !== null && _super.apply(this, arguments) || this;
67
+ }
68
+ _TrendingInsights = __decorate([
69
+ defaultPath("trending"),
70
+ getById(TrendingInsight)
71
+ ], _TrendingInsights);
72
+ return _TrendingInsights;
73
+ }(_GraphQueryableCollection));
74
+ export { _TrendingInsights };
75
+ export var TrendingInsights = graphInvokableFactory(_TrendingInsights);
76
+ /**
77
+ * Describes a Used Insight instance
78
+ */
79
+ var _UsedInsight = /** @class */ (function (_super) {
80
+ __extends(_UsedInsight, _super);
81
+ function _UsedInsight() {
82
+ return _super !== null && _super.apply(this, arguments) || this;
83
+ }
84
+ Object.defineProperty(_UsedInsight.prototype, "resource", {
85
+ get: function () {
86
+ return Resource(this);
87
+ },
88
+ enumerable: false,
89
+ configurable: true
90
+ });
91
+ return _UsedInsight;
92
+ }(_GraphQueryableInstance));
93
+ export { _UsedInsight };
94
+ export var UsedInsight = graphInvokableFactory(_UsedInsight);
95
+ /**
96
+ * Describes a collection of Used Insight objects
97
+ *
98
+ */
99
+ var _UsedInsights = /** @class */ (function (_super) {
100
+ __extends(_UsedInsights, _super);
101
+ function _UsedInsights() {
102
+ return _super !== null && _super.apply(this, arguments) || this;
103
+ }
104
+ _UsedInsights = __decorate([
105
+ defaultPath("used"),
106
+ getById(UsedInsight)
107
+ ], _UsedInsights);
108
+ return _UsedInsights;
109
+ }(_GraphQueryableCollection));
110
+ export { _UsedInsights };
111
+ export var UsedInsights = graphInvokableFactory(_UsedInsights);
112
+ /**
113
+ * Describes a Shared Insight instance
114
+ */
115
+ var _SharedInsight = /** @class */ (function (_super) {
116
+ __extends(_SharedInsight, _super);
117
+ function _SharedInsight() {
118
+ return _super !== null && _super.apply(this, arguments) || this;
119
+ }
120
+ Object.defineProperty(_SharedInsight.prototype, "resource", {
121
+ get: function () {
122
+ return Resource(this);
123
+ },
124
+ enumerable: false,
125
+ configurable: true
126
+ });
127
+ return _SharedInsight;
128
+ }(_GraphQueryableInstance));
129
+ export { _SharedInsight };
130
+ export var SharedInsight = graphInvokableFactory(_SharedInsight);
131
+ /**
132
+ * Describes a collection of Shared Insight objects
133
+ *
134
+ */
135
+ var _SharedInsights = /** @class */ (function (_super) {
136
+ __extends(_SharedInsights, _super);
137
+ function _SharedInsights() {
138
+ return _super !== null && _super.apply(this, arguments) || this;
139
+ }
140
+ _SharedInsights = __decorate([
141
+ defaultPath("shared"),
142
+ getById(SharedInsight)
143
+ ], _SharedInsights);
144
+ return _SharedInsights;
145
+ }(_GraphQueryableCollection));
146
+ export { _SharedInsights };
147
+ export var SharedInsights = graphInvokableFactory(_SharedInsights);
148
+ /**
149
+ * Describes a Resource Entity instance
150
+ */
151
+ var _Resource = /** @class */ (function (_super) {
152
+ __extends(_Resource, _super);
153
+ function _Resource() {
154
+ return _super !== null && _super.apply(this, arguments) || this;
155
+ }
156
+ _Resource = __decorate([
157
+ defaultPath("resource")
158
+ ], _Resource);
159
+ return _Resource;
160
+ }(_GraphQueryableInstance));
161
+ export { _Resource };
162
+ export var Resource = graphInvokableFactory(_Resource);
163
163
  //# sourceMappingURL=types.js.map
@@ -1,10 +1,10 @@
1
- import { IInsights } from "./types.js";
2
- declare module "../users/types" {
3
- interface _User {
4
- readonly insights: IInsights;
5
- }
6
- interface IUser {
7
- readonly insights: IInsights;
8
- }
9
- }
1
+ import { IInsights } from "./types.js";
2
+ declare module "../users/types" {
3
+ interface _User {
4
+ readonly insights: IInsights;
5
+ }
6
+ interface IUser {
7
+ readonly insights: IInsights;
8
+ }
9
+ }
10
10
  //# sourceMappingURL=users.d.ts.map
package/insights/users.js CHANGED
@@ -1,5 +1,5 @@
1
- import { addProp } from "@pnp/odata";
2
- import { _User } from "../users/types.js";
3
- import { Insights } from "./types.js";
4
- addProp(_User, "insights", Insights);
1
+ import { addProp } from "@pnp/odata";
2
+ import { _User } from "../users/types.js";
3
+ import { Insights } from "./types.js";
4
+ addProp(_User, "insights", Insights);
5
5
  //# sourceMappingURL=users.js.map
@@ -1,8 +1,8 @@
1
- import { IInvitations } from "./types.js";
2
- export { IInvitationAddResult, IInvitations, Invitations, } from "./types.js";
3
- declare module "../rest" {
4
- interface GraphRest {
5
- readonly invitations: IInvitations;
6
- }
7
- }
1
+ import { IInvitations } from "./types.js";
2
+ export { IInvitationAddResult, IInvitations, Invitations, } from "./types.js";
3
+ declare module "../rest" {
4
+ interface GraphRest {
5
+ readonly invitations: IInvitations;
6
+ }
7
+ }
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1,14 +1,14 @@
1
- import { GraphRest } from "../rest.js";
2
- import { Invitations } from "./types.js";
3
- export { Invitations, } from "./types.js";
4
- Reflect.defineProperty(GraphRest.prototype, "invitations", {
5
- configurable: true,
6
- enumerable: true,
7
- get: function () {
8
- return this.childConfigHook(function (_a) {
9
- var options = _a.options, baseUrl = _a.baseUrl, runtime = _a.runtime;
10
- return Invitations(baseUrl).configure(options).setRuntime(runtime);
11
- });
12
- },
13
- });
1
+ import { GraphRest } from "../rest.js";
2
+ import { Invitations } from "./types.js";
3
+ export { Invitations, } from "./types.js";
4
+ Reflect.defineProperty(GraphRest.prototype, "invitations", {
5
+ configurable: true,
6
+ enumerable: true,
7
+ get: function () {
8
+ return this.childConfigHook(function (_a) {
9
+ var options = _a.options, baseUrl = _a.baseUrl, runtime = _a.runtime;
10
+ return Invitations(baseUrl).configure(options).setRuntime(runtime);
11
+ });
12
+ },
13
+ });
14
14
  //# sourceMappingURL=index.js.map
@@ -1,26 +1,26 @@
1
- import { ITypedHash } from "@pnp/common";
2
- import { Invitation as IInvitationType } from "@microsoft/microsoft-graph-types";
3
- import { _GraphQueryableCollection } from "../graphqueryable.js";
4
- /**
5
- * Invitations
6
- */
7
- export declare class _Invitations extends _GraphQueryableCollection<IInvitationType[]> {
8
- /**
9
- * Create a new Invitation via invitation manager.
10
- *
11
- * @param invitedUserEmailAddress The email address of the user being invited.
12
- * @param inviteRedirectUrl The URL user should be redirected to once the invitation is redeemed.
13
- * @param additionalProperties A plain object collection of additional properties you want to set in the invitation
14
- */
15
- create(invitedUserEmailAddress: string, inviteRedirectUrl: string, additionalProperties?: ITypedHash<any>): Promise<IInvitationAddResult>;
16
- }
17
- export interface IInvitations extends _Invitations {
18
- }
19
- export declare const Invitations: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IInvitations & import("@pnp/odata").IInvokable<any>;
20
- /**
21
- * IInvitationAddResult
22
- */
23
- export interface IInvitationAddResult {
24
- data: IInvitationType;
25
- }
1
+ import { ITypedHash } from "@pnp/common";
2
+ import { Invitation as IInvitationType } from "@microsoft/microsoft-graph-types";
3
+ import { _GraphQueryableCollection } from "../graphqueryable.js";
4
+ /**
5
+ * Invitations
6
+ */
7
+ export declare class _Invitations extends _GraphQueryableCollection<IInvitationType[]> {
8
+ /**
9
+ * Create a new Invitation via invitation manager.
10
+ *
11
+ * @param invitedUserEmailAddress The email address of the user being invited.
12
+ * @param inviteRedirectUrl The URL user should be redirected to once the invitation is redeemed.
13
+ * @param additionalProperties A plain object collection of additional properties you want to set in the invitation
14
+ */
15
+ create(invitedUserEmailAddress: string, inviteRedirectUrl: string, additionalProperties?: ITypedHash<any>): Promise<IInvitationAddResult>;
16
+ }
17
+ export interface IInvitations extends _Invitations {
18
+ }
19
+ export declare const Invitations: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IInvitations & import("@pnp/odata").IInvokable<any>;
20
+ /**
21
+ * IInvitationAddResult
22
+ */
23
+ export interface IInvitationAddResult {
24
+ data: IInvitationType;
25
+ }
26
26
  //# sourceMappingURL=types.d.ts.map
@@ -1,45 +1,45 @@
1
- import { __awaiter, __decorate, __extends, __generator } from "tslib";
2
- import { assign } from "@pnp/common";
3
- import { body } from "@pnp/odata";
4
- import { _GraphQueryableCollection, graphInvokableFactory } from "../graphqueryable.js";
5
- import { defaultPath } from "../decorators.js";
6
- import { graphPost } from "../operations.js";
7
- /**
8
- * Invitations
9
- */
10
- var _Invitations = /** @class */ (function (_super) {
11
- __extends(_Invitations, _super);
12
- function _Invitations() {
13
- return _super !== null && _super.apply(this, arguments) || this;
14
- }
15
- /**
16
- * Create a new Invitation via invitation manager.
17
- *
18
- * @param invitedUserEmailAddress The email address of the user being invited.
19
- * @param inviteRedirectUrl The URL user should be redirected to once the invitation is redeemed.
20
- * @param additionalProperties A plain object collection of additional properties you want to set in the invitation
21
- */
22
- _Invitations.prototype.create = function (invitedUserEmailAddress, inviteRedirectUrl, additionalProperties) {
23
- if (additionalProperties === void 0) { additionalProperties = {}; }
24
- return __awaiter(this, void 0, void 0, function () {
25
- var postBody, data;
26
- return __generator(this, function (_a) {
27
- switch (_a.label) {
28
- case 0:
29
- postBody = assign({ inviteRedirectUrl: inviteRedirectUrl, invitedUserEmailAddress: invitedUserEmailAddress }, additionalProperties);
30
- return [4 /*yield*/, graphPost(this, body(postBody))];
31
- case 1:
32
- data = _a.sent();
33
- return [2 /*return*/, { data: data }];
34
- }
35
- });
36
- });
37
- };
38
- _Invitations = __decorate([
39
- defaultPath("invitations")
40
- ], _Invitations);
41
- return _Invitations;
42
- }(_GraphQueryableCollection));
43
- export { _Invitations };
44
- export var Invitations = graphInvokableFactory(_Invitations);
1
+ import { __awaiter, __decorate, __extends, __generator } from "tslib";
2
+ import { assign } from "@pnp/common";
3
+ import { body } from "@pnp/odata";
4
+ import { _GraphQueryableCollection, graphInvokableFactory } from "../graphqueryable.js";
5
+ import { defaultPath } from "../decorators.js";
6
+ import { graphPost } from "../operations.js";
7
+ /**
8
+ * Invitations
9
+ */
10
+ var _Invitations = /** @class */ (function (_super) {
11
+ __extends(_Invitations, _super);
12
+ function _Invitations() {
13
+ return _super !== null && _super.apply(this, arguments) || this;
14
+ }
15
+ /**
16
+ * Create a new Invitation via invitation manager.
17
+ *
18
+ * @param invitedUserEmailAddress The email address of the user being invited.
19
+ * @param inviteRedirectUrl The URL user should be redirected to once the invitation is redeemed.
20
+ * @param additionalProperties A plain object collection of additional properties you want to set in the invitation
21
+ */
22
+ _Invitations.prototype.create = function (invitedUserEmailAddress, inviteRedirectUrl, additionalProperties) {
23
+ if (additionalProperties === void 0) { additionalProperties = {}; }
24
+ return __awaiter(this, void 0, void 0, function () {
25
+ var postBody, data;
26
+ return __generator(this, function (_a) {
27
+ switch (_a.label) {
28
+ case 0:
29
+ postBody = assign({ inviteRedirectUrl: inviteRedirectUrl, invitedUserEmailAddress: invitedUserEmailAddress }, additionalProperties);
30
+ return [4 /*yield*/, graphPost(this, body(postBody))];
31
+ case 1:
32
+ data = _a.sent();
33
+ return [2 /*return*/, { data: data }];
34
+ }
35
+ });
36
+ });
37
+ };
38
+ _Invitations = __decorate([
39
+ defaultPath("invitations")
40
+ ], _Invitations);
41
+ return _Invitations;
42
+ }(_GraphQueryableCollection));
43
+ export { _Invitations };
44
+ export var Invitations = graphInvokableFactory(_Invitations);
45
45
  //# sourceMappingURL=types.js.map
@@ -1,12 +1,12 @@
1
- import { IMembers } from "./types.js";
2
- declare module "../groups/types" {
3
- interface _Group {
4
- readonly owners: IMembers;
5
- readonly members: IMembers;
6
- }
7
- interface IGroup {
8
- readonly owners: IMembers;
9
- readonly members: IMembers;
10
- }
11
- }
1
+ import { IMembers } from "./types.js";
2
+ declare module "../groups/types" {
3
+ interface _Group {
4
+ readonly owners: IMembers;
5
+ readonly members: IMembers;
6
+ }
7
+ interface IGroup {
8
+ readonly owners: IMembers;
9
+ readonly members: IMembers;
10
+ }
11
+ }
12
12
  //# sourceMappingURL=groups.d.ts.map
package/members/groups.js CHANGED
@@ -1,6 +1,6 @@
1
- import { addProp } from "@pnp/odata";
2
- import { _Group } from "../groups/types.js";
3
- import { Members } from "./types.js";
4
- addProp(_Group, "owners", Members, "owners");
5
- addProp(_Group, "members", Members);
1
+ import { addProp } from "@pnp/odata";
2
+ import { _Group } from "../groups/types.js";
3
+ import { Members } from "./types.js";
4
+ addProp(_Group, "owners", Members, "owners");
5
+ addProp(_Group, "members", Members);
6
6
  //# sourceMappingURL=groups.js.map
@@ -1,3 +1,3 @@
1
- import "./groups.js";
2
- export { IMember, IMembers, Member, Members, } from "./types.js";
1
+ import "./groups.js";
2
+ export { IMember, IMembers, Member, Members, } from "./types.js";
3
3
  //# sourceMappingURL=index.d.ts.map
package/members/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import "./groups.js";
2
- export { Member, Members, } from "./types.js";
1
+ import "./groups.js";
2
+ export { Member, Members, } from "./types.js";
3
3
  //# sourceMappingURL=index.js.map