@pnp/graph 2.7.0 → 2.11.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 (165) 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 -24
  11. package/calendars/funcs.d.ts.map +1 -1
  12. package/calendars/funcs.js +43 -29
  13. package/calendars/funcs.js.map +1 -1
  14. package/calendars/groups.d.ts +13 -13
  15. package/calendars/groups.js +5 -5
  16. package/calendars/index.d.ts +4 -4
  17. package/calendars/index.js +3 -3
  18. package/calendars/types.d.ts +52 -51
  19. package/calendars/types.d.ts.map +1 -1
  20. package/calendars/types.js +98 -96
  21. package/calendars/types.js.map +1 -1
  22. package/calendars/users.d.ts +22 -22
  23. package/calendars/users.js +9 -9
  24. package/cloud-communications/index.d.ts +8 -8
  25. package/cloud-communications/index.js +14 -14
  26. package/cloud-communications/types.d.ts +21 -21
  27. package/cloud-communications/types.js +46 -46
  28. package/cloud-communications/users.d.ts +9 -9
  29. package/cloud-communications/users.js +4 -4
  30. package/contacts/index.d.ts +2 -2
  31. package/contacts/index.js +2 -2
  32. package/contacts/types.d.ts +75 -75
  33. package/contacts/types.js +145 -145
  34. package/contacts/users.d.ts +11 -11
  35. package/contacts/users.js +5 -5
  36. package/conversations/groups.d.ts +13 -13
  37. package/conversations/groups.js +6 -6
  38. package/conversations/index.d.ts +2 -2
  39. package/conversations/index.js +2 -2
  40. package/conversations/types.d.ts +103 -103
  41. package/conversations/types.js +173 -173
  42. package/decorators.d.ts +103 -103
  43. package/decorators.js +138 -138
  44. package/directory-objects/index.d.ts +7 -7
  45. package/directory-objects/index.js +13 -13
  46. package/directory-objects/types.d.ts +67 -67
  47. package/directory-objects/types.js +96 -96
  48. package/graphhttpclient.d.ts +13 -13
  49. package/graphhttpclient.js +95 -95
  50. package/graphlibconfig.d.ts +21 -21
  51. package/graphlibconfig.js +19 -19
  52. package/graphqueryable.d.ts +156 -156
  53. package/graphqueryable.d.ts.map +1 -1
  54. package/graphqueryable.js +247 -237
  55. package/graphqueryable.js.map +1 -1
  56. package/groups/index.d.ts +7 -7
  57. package/groups/index.js +13 -13
  58. package/groups/types.d.ts +81 -81
  59. package/groups/types.d.ts.map +1 -1
  60. package/groups/types.js +137 -137
  61. package/groups/types.js.map +1 -1
  62. package/index.d.ts +8 -8
  63. package/index.js +7 -7
  64. package/insights/index.d.ts +2 -2
  65. package/insights/index.js +2 -2
  66. package/insights/types.d.ts +76 -76
  67. package/insights/types.js +162 -162
  68. package/insights/users.d.ts +9 -9
  69. package/insights/users.js +4 -4
  70. package/invitations/index.d.ts +7 -7
  71. package/invitations/index.js +13 -13
  72. package/invitations/types.d.ts +25 -25
  73. package/invitations/types.js +44 -44
  74. package/members/groups.d.ts +11 -11
  75. package/members/groups.js +5 -5
  76. package/members/index.d.ts +2 -2
  77. package/members/index.js +2 -2
  78. package/members/types.d.ts +31 -31
  79. package/members/types.js +49 -49
  80. package/messages/index.d.ts +2 -2
  81. package/messages/index.js +2 -2
  82. package/messages/types.d.ts +43 -43
  83. package/messages/types.d.ts.map +1 -1
  84. package/messages/types.js +77 -77
  85. package/messages/types.js.map +1 -1
  86. package/messages/users.d.ts +15 -15
  87. package/messages/users.js +10 -10
  88. package/onedrive/index.d.ts +2 -2
  89. package/onedrive/index.js +2 -2
  90. package/onedrive/types.d.ts +95 -87
  91. package/onedrive/types.d.ts.map +1 -1
  92. package/onedrive/types.js +241 -192
  93. package/onedrive/types.js.map +1 -1
  94. package/onedrive/users.d.ts +11 -11
  95. package/onedrive/users.js +5 -5
  96. package/onenote/index.d.ts +2 -2
  97. package/onenote/index.js +2 -2
  98. package/onenote/types.d.ts +76 -76
  99. package/onenote/types.js +149 -149
  100. package/onenote/users.d.ts +9 -9
  101. package/onenote/users.js +4 -4
  102. package/operations.d.ts +8 -8
  103. package/operations.js +41 -41
  104. package/outlook/index.d.ts +2 -2
  105. package/outlook/index.js +2 -2
  106. package/outlook/types.d.ts +40 -40
  107. package/outlook/types.js +76 -76
  108. package/outlook/users.d.ts +9 -9
  109. package/outlook/users.js +4 -4
  110. package/package.json +5 -5
  111. package/photos/groups.d.ts +9 -9
  112. package/photos/groups.js +4 -4
  113. package/photos/index.d.ts +3 -3
  114. package/photos/index.js +3 -3
  115. package/photos/types.d.ts +21 -21
  116. package/photos/types.js +37 -37
  117. package/photos/users.d.ts +9 -9
  118. package/photos/users.js +4 -4
  119. package/planner/groups.d.ts +9 -9
  120. package/planner/groups.js +4 -4
  121. package/planner/index.d.ts +9 -9
  122. package/planner/index.js +15 -15
  123. package/planner/types.d.ts +117 -117
  124. package/planner/types.js +291 -291
  125. package/planner/users.d.ts +9 -9
  126. package/planner/users.js +4 -4
  127. package/presets/all.d.ts +38 -38
  128. package/presets/all.js +38 -38
  129. package/readme.md +21 -21
  130. package/rest.d.ts +30 -30
  131. package/rest.js +57 -57
  132. package/search/index.d.ts +7 -7
  133. package/search/index.js +18 -18
  134. package/search/types.d.ts +16 -16
  135. package/search/types.js +23 -23
  136. package/sites/group.d.ts +9 -9
  137. package/sites/group.js +4 -4
  138. package/sites/index.d.ts +2 -2
  139. package/sites/index.js +2 -2
  140. package/sites/types.d.ts +23 -23
  141. package/sites/types.js +47 -47
  142. package/subscriptions/index.d.ts +7 -7
  143. package/subscriptions/index.js +13 -13
  144. package/subscriptions/types.d.ts +37 -37
  145. package/subscriptions/types.js +72 -72
  146. package/teams/index.d.ts +19 -19
  147. package/teams/index.js +35 -35
  148. package/teams/types.d.ts +112 -111
  149. package/teams/types.d.ts.map +1 -1
  150. package/teams/types.js +261 -254
  151. package/teams/types.js.map +1 -1
  152. package/teams/users.d.ts +9 -9
  153. package/teams/users.js +4 -4
  154. package/types.d.ts +9 -9
  155. package/types.js +19 -19
  156. package/users/index.d.ts +8 -8
  157. package/users/index.js +23 -23
  158. package/users/types.d.ts +35 -35
  159. package/users/types.d.ts.map +1 -1
  160. package/users/types.js +82 -82
  161. package/users/types.js.map +1 -1
  162. package/utils/toabsoluteurl.d.ts +7 -7
  163. package/utils/toabsoluteurl.js +48 -48
  164. package/utils/type.d.ts +3 -3
  165. package/utils/type.js +3 -3
@@ -1,77 +1,77 @@
1
- import { OfficeGraphInsights as IOfficeGraphInsightsType, Trending as ITrendingInsightType, UsedInsight as IUsedInsightType, SharedInsight as ISharedInsightType, Entity as IEntityType } from "@microsoft/microsoft-graph-types";
2
- import { _GraphQueryableInstance, _GraphQueryableCollection } from "../graphqueryable.js";
3
- import { IGetById } from "../decorators.js";
4
- /**
5
- * Represents a insights entity
6
- */
7
- export declare class _Insights extends _GraphQueryableInstance<IOfficeGraphInsightsType> {
8
- get trending(): ITrendingInsights;
9
- get used(): IUsedInsights;
10
- get shared(): ISharedInsights;
11
- }
12
- export interface IInsights extends _Insights {
13
- }
14
- export declare const Insights: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IInsights & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
15
- /**
16
- * Describes a Trending Insight instance
17
- */
18
- export declare class _TrendingInsight extends _GraphQueryableInstance<ITrendingInsightType> {
19
- get resource(): IResource;
20
- }
21
- export interface ITrendingInsight extends _TrendingInsight {
22
- }
23
- export declare const TrendingInsight: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ITrendingInsight & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
24
- /**
25
- * Describes a collection of Trending Insight objects
26
- *
27
- */
28
- export declare class _TrendingInsights extends _GraphQueryableCollection<ITrendingInsightType[]> {
29
- }
30
- export interface ITrendingInsights extends _TrendingInsights, IGetById<ITrendingInsight> {
31
- }
32
- export declare const TrendingInsights: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ITrendingInsights & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
33
- /**
34
- * Describes a Used Insight instance
35
- */
36
- export declare class _UsedInsight extends _GraphQueryableInstance<IUsedInsightType> {
37
- get resource(): IResource;
38
- }
39
- export interface IUsedInsight extends _UsedInsight {
40
- }
41
- export declare const UsedInsight: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IUsedInsight & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
42
- /**
43
- * Describes a collection of Used Insight objects
44
- *
45
- */
46
- export declare class _UsedInsights extends _GraphQueryableCollection<IUsedInsightType[]> {
47
- }
48
- export interface IUsedInsights extends _UsedInsights, IGetById<IUsedInsight> {
49
- }
50
- export declare const UsedInsights: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IUsedInsights & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
51
- /**
52
- * Describes a Shared Insight instance
53
- */
54
- export declare class _SharedInsight extends _GraphQueryableInstance<ISharedInsightType> {
55
- get resource(): IResource;
56
- }
57
- export interface ISharedInsight extends _SharedInsight {
58
- }
59
- export declare const SharedInsight: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ISharedInsight & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
60
- /**
61
- * Describes a collection of Shared Insight objects
62
- *
63
- */
64
- export declare class _SharedInsights extends _GraphQueryableCollection<ISharedInsightType[]> {
65
- }
66
- export interface ISharedInsights extends _SharedInsights, IGetById<ISharedInsight> {
67
- }
68
- export declare const SharedInsights: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ISharedInsights & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
69
- /**
70
- * Describes a Resource Entity instance
71
- */
72
- export declare class _Resource extends _GraphQueryableInstance<IEntityType> {
73
- }
74
- export interface IResource extends _Resource {
75
- }
76
- export declare const Resource: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IResource & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
1
+ import { OfficeGraphInsights as IOfficeGraphInsightsType, Trending as ITrendingInsightType, UsedInsight as IUsedInsightType, SharedInsight as ISharedInsightType, Entity as IEntityType } from "@microsoft/microsoft-graph-types";
2
+ import { _GraphQueryableInstance, _GraphQueryableCollection } from "../graphqueryable.js";
3
+ import { IGetById } from "../decorators.js";
4
+ /**
5
+ * Represents a insights entity
6
+ */
7
+ export declare class _Insights extends _GraphQueryableInstance<IOfficeGraphInsightsType> {
8
+ get trending(): ITrendingInsights;
9
+ get used(): IUsedInsights;
10
+ get shared(): ISharedInsights;
11
+ }
12
+ export interface IInsights extends _Insights {
13
+ }
14
+ export declare const Insights: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IInsights & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
15
+ /**
16
+ * Describes a Trending Insight instance
17
+ */
18
+ export declare class _TrendingInsight extends _GraphQueryableInstance<ITrendingInsightType> {
19
+ get resource(): IResource;
20
+ }
21
+ export interface ITrendingInsight extends _TrendingInsight {
22
+ }
23
+ export declare const TrendingInsight: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ITrendingInsight & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
24
+ /**
25
+ * Describes a collection of Trending Insight objects
26
+ *
27
+ */
28
+ export declare class _TrendingInsights extends _GraphQueryableCollection<ITrendingInsightType[]> {
29
+ }
30
+ export interface ITrendingInsights extends _TrendingInsights, IGetById<ITrendingInsight> {
31
+ }
32
+ export declare const TrendingInsights: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ITrendingInsights & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
33
+ /**
34
+ * Describes a Used Insight instance
35
+ */
36
+ export declare class _UsedInsight extends _GraphQueryableInstance<IUsedInsightType> {
37
+ get resource(): IResource;
38
+ }
39
+ export interface IUsedInsight extends _UsedInsight {
40
+ }
41
+ export declare const UsedInsight: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IUsedInsight & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
42
+ /**
43
+ * Describes a collection of Used Insight objects
44
+ *
45
+ */
46
+ export declare class _UsedInsights extends _GraphQueryableCollection<IUsedInsightType[]> {
47
+ }
48
+ export interface IUsedInsights extends _UsedInsights, IGetById<IUsedInsight> {
49
+ }
50
+ export declare const UsedInsights: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IUsedInsights & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
51
+ /**
52
+ * Describes a Shared Insight instance
53
+ */
54
+ export declare class _SharedInsight extends _GraphQueryableInstance<ISharedInsightType> {
55
+ get resource(): IResource;
56
+ }
57
+ export interface ISharedInsight extends _SharedInsight {
58
+ }
59
+ export declare const SharedInsight: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ISharedInsight & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
60
+ /**
61
+ * Describes a collection of Shared Insight objects
62
+ *
63
+ */
64
+ export declare class _SharedInsights extends _GraphQueryableCollection<ISharedInsightType[]> {
65
+ }
66
+ export interface ISharedInsights extends _SharedInsights, IGetById<ISharedInsight> {
67
+ }
68
+ export declare const SharedInsights: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ISharedInsights & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
69
+ /**
70
+ * Describes a Resource Entity instance
71
+ */
72
+ export declare class _Resource extends _GraphQueryableInstance<IEntityType> {
73
+ }
74
+ export interface IResource extends _Resource {
75
+ }
76
+ export declare const Resource: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IResource & import("@pnp/odata/invokable-binder.js").IInvokable<any>;
77
77
  //# sourceMappingURL=types.d.ts.map
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