@pnp/graph 2.8.0 → 2.12.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 (153) 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.d.ts.map +1 -1
  50. package/graphqueryable.js +247 -242
  51. package/graphqueryable.js.map +1 -1
  52. package/groups/index.d.ts +7 -7
  53. package/groups/index.js +13 -13
  54. package/groups/types.d.ts +81 -81
  55. package/groups/types.js +137 -137
  56. package/index.d.ts +8 -8
  57. package/index.js +7 -7
  58. package/insights/index.d.ts +2 -2
  59. package/insights/index.js +2 -2
  60. package/insights/types.d.ts +76 -76
  61. package/insights/types.js +162 -162
  62. package/insights/users.d.ts +9 -9
  63. package/insights/users.js +4 -4
  64. package/invitations/index.d.ts +7 -7
  65. package/invitations/index.js +13 -13
  66. package/invitations/types.d.ts +25 -25
  67. package/invitations/types.js +44 -44
  68. package/members/groups.d.ts +11 -11
  69. package/members/groups.js +5 -5
  70. package/members/index.d.ts +2 -2
  71. package/members/index.js +2 -2
  72. package/members/types.d.ts +31 -31
  73. package/members/types.js +49 -49
  74. package/messages/index.d.ts +2 -2
  75. package/messages/index.js +2 -2
  76. package/messages/types.d.ts +43 -43
  77. package/messages/types.js +77 -77
  78. package/messages/users.d.ts +15 -15
  79. package/messages/users.js +10 -10
  80. package/onedrive/index.d.ts +2 -2
  81. package/onedrive/index.js +2 -2
  82. package/onedrive/types.d.ts +95 -95
  83. package/onedrive/types.js +241 -241
  84. package/onedrive/users.d.ts +11 -11
  85. package/onedrive/users.js +5 -5
  86. package/onenote/index.d.ts +2 -2
  87. package/onenote/index.js +2 -2
  88. package/onenote/types.d.ts +76 -76
  89. package/onenote/types.js +149 -149
  90. package/onenote/users.d.ts +9 -9
  91. package/onenote/users.js +4 -4
  92. package/operations.d.ts +8 -8
  93. package/operations.js +41 -41
  94. package/outlook/index.d.ts +2 -2
  95. package/outlook/index.js +2 -2
  96. package/outlook/types.d.ts +40 -40
  97. package/outlook/types.js +76 -76
  98. package/outlook/users.d.ts +9 -9
  99. package/outlook/users.js +4 -4
  100. package/package.json +5 -5
  101. package/photos/groups.d.ts +9 -9
  102. package/photos/groups.js +4 -4
  103. package/photos/index.d.ts +3 -3
  104. package/photos/index.js +3 -3
  105. package/photos/types.d.ts +21 -21
  106. package/photos/types.js +37 -37
  107. package/photos/users.d.ts +9 -9
  108. package/photos/users.js +4 -4
  109. package/planner/groups.d.ts +9 -9
  110. package/planner/groups.js +4 -4
  111. package/planner/index.d.ts +9 -9
  112. package/planner/index.js +15 -15
  113. package/planner/types.d.ts +117 -117
  114. package/planner/types.js +291 -291
  115. package/planner/users.d.ts +9 -9
  116. package/planner/users.js +4 -4
  117. package/presets/all.d.ts +38 -38
  118. package/presets/all.js +38 -38
  119. package/readme.md +21 -21
  120. package/rest.d.ts +30 -30
  121. package/rest.js +57 -57
  122. package/search/index.d.ts +7 -7
  123. package/search/index.js +18 -18
  124. package/search/types.d.ts +16 -16
  125. package/search/types.js +23 -23
  126. package/sites/group.d.ts +9 -9
  127. package/sites/group.js +4 -4
  128. package/sites/index.d.ts +2 -2
  129. package/sites/index.js +2 -2
  130. package/sites/types.d.ts +23 -23
  131. package/sites/types.js +47 -47
  132. package/subscriptions/index.d.ts +7 -7
  133. package/subscriptions/index.js +13 -13
  134. package/subscriptions/types.d.ts +37 -37
  135. package/subscriptions/types.js +72 -72
  136. package/teams/index.d.ts +19 -19
  137. package/teams/index.js +35 -35
  138. package/teams/types.d.ts +112 -111
  139. package/teams/types.d.ts.map +1 -1
  140. package/teams/types.js +261 -254
  141. package/teams/types.js.map +1 -1
  142. package/teams/users.d.ts +9 -9
  143. package/teams/users.js +4 -4
  144. package/types.d.ts +9 -9
  145. package/types.js +19 -19
  146. package/users/index.d.ts +8 -8
  147. package/users/index.js +23 -23
  148. package/users/types.d.ts +35 -35
  149. package/users/types.js +82 -82
  150. package/utils/toabsoluteurl.d.ts +7 -7
  151. package/utils/toabsoluteurl.js +48 -48
  152. package/utils/type.d.ts +3 -3
  153. package/utils/type.js +3 -3
@@ -1,118 +1,118 @@
1
- import { ITypedHash } from "@pnp/common";
2
- import { PlannerPlan as IPlannerPlanType, PlannerPlanDetails as IPlannerPlanDetailsType, PlannerTask as IPlannerTaskType, PlannerTaskDetails as IPlannerTaskDetailsType, PlannerBucket as IPlannerBucketType, Planner as IPlannerType } from "@microsoft/microsoft-graph-types";
3
- import { _GraphQueryableInstance, _GraphQueryableCollection } from "../graphqueryable.js";
4
- import { IGetById, IDeleteableWithETag, IUpdateableWithETag } from "../decorators.js";
5
- /**
6
- * Planner
7
- */
8
- export declare class _Planner extends _GraphQueryableInstance<IPlannerType> {
9
- get plans(): IPlans;
10
- get tasks(): ITasks;
11
- get buckets(): IBuckets;
12
- }
13
- export interface IPlanner extends _Planner {
14
- }
15
- export declare const Planner: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IPlanner & import("@pnp/odata").IInvokable<any>;
16
- /**
17
- * Details
18
- */
19
- export declare class _PlanDetails extends _GraphQueryableInstance<IPlannerPlanDetailsType> {
20
- }
21
- export interface IPlanDetails extends _PlanDetails, IUpdateableWithETag<IPlannerPlanDetailsType> {
22
- }
23
- export declare const PlanDetails: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ITaskDetails & import("@pnp/odata").IInvokable<any>;
24
- /**
25
- * Plan
26
- */
27
- export declare class _Plan extends _GraphQueryableInstance<IPlannerPlanType> {
28
- get tasks(): ITasks;
29
- get buckets(): IBuckets;
30
- get details(): IPlanDetails;
31
- }
32
- export interface IPlan extends _Plan, IUpdateableWithETag<IPlannerPlanType>, IDeleteableWithETag {
33
- }
34
- export declare const Plan: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IPlan & import("@pnp/odata").IInvokable<any>;
35
- export declare class _Plans extends _GraphQueryableCollection<IPlannerPlanType[]> {
36
- /**
37
- * Create a new Planner Plan.
38
- *
39
- * @param owner Id of Group object.
40
- * @param title The Title of the Plan.
41
- */
42
- add(owner: string, title: string): Promise<IPlanAddResult>;
43
- }
44
- export interface IPlans extends _Plans, IGetById<IPlan> {
45
- }
46
- export declare const Plans: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IPlans & import("@pnp/odata").IInvokable<any>;
47
- /**
48
- * Details
49
- */
50
- export declare class _TaskDetails extends _GraphQueryableInstance<IPlannerTaskDetailsType> {
51
- }
52
- export interface ITaskDetails extends _TaskDetails, IUpdateableWithETag<IPlannerTaskDetailsType> {
53
- }
54
- export declare const TaskDetails: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ITaskDetails & import("@pnp/odata").IInvokable<any>;
55
- /**
56
- * Task
57
- */
58
- export declare class _Task extends _GraphQueryableInstance<IPlannerTaskType> {
59
- get details(): ITaskDetails;
60
- }
61
- export interface ITask extends _Task, IUpdateableWithETag<IPlannerTaskType>, IDeleteableWithETag {
62
- }
63
- export declare const Task: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ITask & import("@pnp/odata").IInvokable<any>;
64
- /**
65
- * Tasks
66
- */
67
- export declare class _Tasks extends _GraphQueryableCollection<IPlannerTaskType[]> {
68
- /**
69
- * Create a new Planner Task.
70
- *
71
- * @param planId Id of Plan.
72
- * @param title The Title of the Task.
73
- * @param assignments Assign the task
74
- * @param bucketId Id of Bucket
75
- */
76
- add(planId: string, title: string, assignments?: ITypedHash<any>, bucketId?: string): Promise<ITaskAddResult>;
77
- }
78
- export interface ITasks extends _Tasks, IGetById<ITask> {
79
- }
80
- export declare const Tasks: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ITasks & import("@pnp/odata").IInvokable<any>;
81
- /**
82
- * Bucket
83
- */
84
- export declare class _Bucket extends _GraphQueryableInstance<IPlannerBucketType> {
85
- get tasks(): ITasks;
86
- }
87
- export interface IBucket extends _Bucket, IUpdateableWithETag<IPlannerBucketType>, IDeleteableWithETag {
88
- }
89
- export declare const Bucket: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IBucket & import("@pnp/odata").IInvokable<any>;
90
- /**
91
- * Buckets
92
- */
93
- export declare class _Buckets extends _GraphQueryableCollection<IPlannerBucketType[]> {
94
- /**
95
- * Create a new Bucket.
96
- *
97
- * @param name Name of Bucket object.
98
- * @param planId The Id of the Plan.
99
- * @param oderHint Hint used to order items of this type in a list view.
100
- */
101
- add(name: string, planId: string, orderHint?: string): Promise<IBucketAddResult>;
102
- }
103
- export interface IBuckets extends _Buckets, IGetById<IBucket> {
104
- }
105
- export declare const Buckets: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IBuckets & import("@pnp/odata").IInvokable<any>;
106
- export interface IBucketAddResult {
107
- data: IPlannerBucketType;
108
- bucket: IBucket;
109
- }
110
- export interface IPlanAddResult {
111
- data: IPlannerPlanType;
112
- plan: IPlan;
113
- }
114
- export interface ITaskAddResult {
115
- data: IPlannerTaskType;
116
- task: ITask;
117
- }
1
+ import { ITypedHash } from "@pnp/common";
2
+ import { PlannerPlan as IPlannerPlanType, PlannerPlanDetails as IPlannerPlanDetailsType, PlannerTask as IPlannerTaskType, PlannerTaskDetails as IPlannerTaskDetailsType, PlannerBucket as IPlannerBucketType, Planner as IPlannerType } from "@microsoft/microsoft-graph-types";
3
+ import { _GraphQueryableInstance, _GraphQueryableCollection } from "../graphqueryable.js";
4
+ import { IGetById, IDeleteableWithETag, IUpdateableWithETag } from "../decorators.js";
5
+ /**
6
+ * Planner
7
+ */
8
+ export declare class _Planner extends _GraphQueryableInstance<IPlannerType> {
9
+ get plans(): IPlans;
10
+ get tasks(): ITasks;
11
+ get buckets(): IBuckets;
12
+ }
13
+ export interface IPlanner extends _Planner {
14
+ }
15
+ export declare const Planner: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IPlanner & import("@pnp/odata").IInvokable<any>;
16
+ /**
17
+ * Details
18
+ */
19
+ export declare class _PlanDetails extends _GraphQueryableInstance<IPlannerPlanDetailsType> {
20
+ }
21
+ export interface IPlanDetails extends _PlanDetails, IUpdateableWithETag<IPlannerPlanDetailsType> {
22
+ }
23
+ export declare const PlanDetails: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ITaskDetails & import("@pnp/odata").IInvokable<any>;
24
+ /**
25
+ * Plan
26
+ */
27
+ export declare class _Plan extends _GraphQueryableInstance<IPlannerPlanType> {
28
+ get tasks(): ITasks;
29
+ get buckets(): IBuckets;
30
+ get details(): IPlanDetails;
31
+ }
32
+ export interface IPlan extends _Plan, IUpdateableWithETag<IPlannerPlanType>, IDeleteableWithETag {
33
+ }
34
+ export declare const Plan: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IPlan & import("@pnp/odata").IInvokable<any>;
35
+ export declare class _Plans extends _GraphQueryableCollection<IPlannerPlanType[]> {
36
+ /**
37
+ * Create a new Planner Plan.
38
+ *
39
+ * @param owner Id of Group object.
40
+ * @param title The Title of the Plan.
41
+ */
42
+ add(owner: string, title: string): Promise<IPlanAddResult>;
43
+ }
44
+ export interface IPlans extends _Plans, IGetById<IPlan> {
45
+ }
46
+ export declare const Plans: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IPlans & import("@pnp/odata").IInvokable<any>;
47
+ /**
48
+ * Details
49
+ */
50
+ export declare class _TaskDetails extends _GraphQueryableInstance<IPlannerTaskDetailsType> {
51
+ }
52
+ export interface ITaskDetails extends _TaskDetails, IUpdateableWithETag<IPlannerTaskDetailsType> {
53
+ }
54
+ export declare const TaskDetails: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ITaskDetails & import("@pnp/odata").IInvokable<any>;
55
+ /**
56
+ * Task
57
+ */
58
+ export declare class _Task extends _GraphQueryableInstance<IPlannerTaskType> {
59
+ get details(): ITaskDetails;
60
+ }
61
+ export interface ITask extends _Task, IUpdateableWithETag<IPlannerTaskType>, IDeleteableWithETag {
62
+ }
63
+ export declare const Task: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ITask & import("@pnp/odata").IInvokable<any>;
64
+ /**
65
+ * Tasks
66
+ */
67
+ export declare class _Tasks extends _GraphQueryableCollection<IPlannerTaskType[]> {
68
+ /**
69
+ * Create a new Planner Task.
70
+ *
71
+ * @param planId Id of Plan.
72
+ * @param title The Title of the Task.
73
+ * @param assignments Assign the task
74
+ * @param bucketId Id of Bucket
75
+ */
76
+ add(planId: string, title: string, assignments?: ITypedHash<any>, bucketId?: string): Promise<ITaskAddResult>;
77
+ }
78
+ export interface ITasks extends _Tasks, IGetById<ITask> {
79
+ }
80
+ export declare const Tasks: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ITasks & import("@pnp/odata").IInvokable<any>;
81
+ /**
82
+ * Bucket
83
+ */
84
+ export declare class _Bucket extends _GraphQueryableInstance<IPlannerBucketType> {
85
+ get tasks(): ITasks;
86
+ }
87
+ export interface IBucket extends _Bucket, IUpdateableWithETag<IPlannerBucketType>, IDeleteableWithETag {
88
+ }
89
+ export declare const Bucket: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IBucket & import("@pnp/odata").IInvokable<any>;
90
+ /**
91
+ * Buckets
92
+ */
93
+ export declare class _Buckets extends _GraphQueryableCollection<IPlannerBucketType[]> {
94
+ /**
95
+ * Create a new Bucket.
96
+ *
97
+ * @param name Name of Bucket object.
98
+ * @param planId The Id of the Plan.
99
+ * @param oderHint Hint used to order items of this type in a list view.
100
+ */
101
+ add(name: string, planId: string, orderHint?: string): Promise<IBucketAddResult>;
102
+ }
103
+ export interface IBuckets extends _Buckets, IGetById<IBucket> {
104
+ }
105
+ export declare const Buckets: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IBuckets & import("@pnp/odata").IInvokable<any>;
106
+ export interface IBucketAddResult {
107
+ data: IPlannerBucketType;
108
+ bucket: IBucket;
109
+ }
110
+ export interface IPlanAddResult {
111
+ data: IPlannerPlanType;
112
+ plan: IPlan;
113
+ }
114
+ export interface ITaskAddResult {
115
+ data: IPlannerTaskType;
116
+ task: ITask;
117
+ }
118
118
  //# sourceMappingURL=types.d.ts.map