@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.
- package/LICENSE +25 -25
- package/attachments/conversations.d.ts +9 -9
- package/attachments/conversations.js +4 -4
- package/attachments/index.d.ts +2 -2
- package/attachments/index.js +2 -2
- package/attachments/types.d.ts +26 -26
- package/attachments/types.js +46 -46
- package/batch.d.ts +17 -17
- package/batch.js +176 -176
- package/calendars/funcs.d.ts +36 -24
- package/calendars/funcs.d.ts.map +1 -1
- package/calendars/funcs.js +43 -29
- package/calendars/funcs.js.map +1 -1
- package/calendars/groups.d.ts +13 -13
- package/calendars/groups.js +5 -5
- package/calendars/index.d.ts +4 -4
- package/calendars/index.js +3 -3
- package/calendars/types.d.ts +52 -51
- package/calendars/types.d.ts.map +1 -1
- package/calendars/types.js +98 -96
- package/calendars/types.js.map +1 -1
- package/calendars/users.d.ts +22 -22
- package/calendars/users.js +9 -9
- package/cloud-communications/index.d.ts +8 -8
- package/cloud-communications/index.js +14 -14
- package/cloud-communications/types.d.ts +21 -21
- package/cloud-communications/types.js +46 -46
- package/cloud-communications/users.d.ts +9 -9
- package/cloud-communications/users.js +4 -4
- package/contacts/index.d.ts +2 -2
- package/contacts/index.js +2 -2
- package/contacts/types.d.ts +75 -75
- package/contacts/types.js +145 -145
- package/contacts/users.d.ts +11 -11
- package/contacts/users.js +5 -5
- package/conversations/groups.d.ts +13 -13
- package/conversations/groups.js +6 -6
- package/conversations/index.d.ts +2 -2
- package/conversations/index.js +2 -2
- package/conversations/types.d.ts +103 -103
- package/conversations/types.js +173 -173
- package/decorators.d.ts +103 -103
- package/decorators.js +138 -138
- package/directory-objects/index.d.ts +7 -7
- package/directory-objects/index.js +13 -13
- package/directory-objects/types.d.ts +67 -67
- package/directory-objects/types.js +96 -96
- package/graphhttpclient.d.ts +13 -13
- package/graphhttpclient.js +95 -95
- package/graphlibconfig.d.ts +21 -21
- package/graphlibconfig.js +19 -19
- package/graphqueryable.d.ts +156 -156
- package/graphqueryable.d.ts.map +1 -1
- package/graphqueryable.js +247 -237
- package/graphqueryable.js.map +1 -1
- package/groups/index.d.ts +7 -7
- package/groups/index.js +13 -13
- package/groups/types.d.ts +81 -81
- package/groups/types.d.ts.map +1 -1
- package/groups/types.js +137 -137
- package/groups/types.js.map +1 -1
- package/index.d.ts +8 -8
- package/index.js +7 -7
- package/insights/index.d.ts +2 -2
- package/insights/index.js +2 -2
- package/insights/types.d.ts +76 -76
- package/insights/types.js +162 -162
- package/insights/users.d.ts +9 -9
- package/insights/users.js +4 -4
- package/invitations/index.d.ts +7 -7
- package/invitations/index.js +13 -13
- package/invitations/types.d.ts +25 -25
- package/invitations/types.js +44 -44
- package/members/groups.d.ts +11 -11
- package/members/groups.js +5 -5
- package/members/index.d.ts +2 -2
- package/members/index.js +2 -2
- package/members/types.d.ts +31 -31
- package/members/types.js +49 -49
- package/messages/index.d.ts +2 -2
- package/messages/index.js +2 -2
- package/messages/types.d.ts +43 -43
- package/messages/types.d.ts.map +1 -1
- package/messages/types.js +77 -77
- package/messages/types.js.map +1 -1
- package/messages/users.d.ts +15 -15
- package/messages/users.js +10 -10
- package/onedrive/index.d.ts +2 -2
- package/onedrive/index.js +2 -2
- package/onedrive/types.d.ts +95 -87
- package/onedrive/types.d.ts.map +1 -1
- package/onedrive/types.js +241 -192
- package/onedrive/types.js.map +1 -1
- package/onedrive/users.d.ts +11 -11
- package/onedrive/users.js +5 -5
- package/onenote/index.d.ts +2 -2
- package/onenote/index.js +2 -2
- package/onenote/types.d.ts +76 -76
- package/onenote/types.js +149 -149
- package/onenote/users.d.ts +9 -9
- package/onenote/users.js +4 -4
- package/operations.d.ts +8 -8
- package/operations.js +41 -41
- package/outlook/index.d.ts +2 -2
- package/outlook/index.js +2 -2
- package/outlook/types.d.ts +40 -40
- package/outlook/types.js +76 -76
- package/outlook/users.d.ts +9 -9
- package/outlook/users.js +4 -4
- package/package.json +5 -5
- package/photos/groups.d.ts +9 -9
- package/photos/groups.js +4 -4
- package/photos/index.d.ts +3 -3
- package/photos/index.js +3 -3
- package/photos/types.d.ts +21 -21
- package/photos/types.js +37 -37
- package/photos/users.d.ts +9 -9
- package/photos/users.js +4 -4
- package/planner/groups.d.ts +9 -9
- package/planner/groups.js +4 -4
- package/planner/index.d.ts +9 -9
- package/planner/index.js +15 -15
- package/planner/types.d.ts +117 -117
- package/planner/types.js +291 -291
- package/planner/users.d.ts +9 -9
- package/planner/users.js +4 -4
- package/presets/all.d.ts +38 -38
- package/presets/all.js +38 -38
- package/readme.md +21 -21
- package/rest.d.ts +30 -30
- package/rest.js +57 -57
- package/search/index.d.ts +7 -7
- package/search/index.js +18 -18
- package/search/types.d.ts +16 -16
- package/search/types.js +23 -23
- package/sites/group.d.ts +9 -9
- package/sites/group.js +4 -4
- package/sites/index.d.ts +2 -2
- package/sites/index.js +2 -2
- package/sites/types.d.ts +23 -23
- package/sites/types.js +47 -47
- package/subscriptions/index.d.ts +7 -7
- package/subscriptions/index.js +13 -13
- package/subscriptions/types.d.ts +37 -37
- package/subscriptions/types.js +72 -72
- package/teams/index.d.ts +19 -19
- package/teams/index.js +35 -35
- package/teams/types.d.ts +112 -111
- package/teams/types.d.ts.map +1 -1
- package/teams/types.js +261 -254
- package/teams/types.js.map +1 -1
- package/teams/users.d.ts +9 -9
- package/teams/users.js +4 -4
- package/types.d.ts +9 -9
- package/types.js +19 -19
- package/users/index.d.ts +8 -8
- package/users/index.js +23 -23
- package/users/types.d.ts +35 -35
- package/users/types.d.ts.map +1 -1
- package/users/types.js +82 -82
- package/users/types.js.map +1 -1
- package/utils/toabsoluteurl.d.ts +7 -7
- package/utils/toabsoluteurl.js +48 -48
- package/utils/type.d.ts +3 -3
- package/utils/type.js +3 -3
package/conversations/types.js
CHANGED
|
@@ -1,174 +1,174 @@
|
|
|
1
|
-
import { __decorate, __extends } from "tslib";
|
|
2
|
-
import { body } from "@pnp/odata";
|
|
3
|
-
import { _GraphQueryableCollection, _GraphQueryableInstance, graphInvokableFactory, } from "../graphqueryable.js";
|
|
4
|
-
import { defaultPath, updateable, deleteable, addable, getById } from "../decorators.js";
|
|
5
|
-
import { graphPost, graphDelete } from "../operations.js";
|
|
6
|
-
/**
|
|
7
|
-
* Conversation
|
|
8
|
-
*/
|
|
9
|
-
var _Conversation = /** @class */ (function (_super) {
|
|
10
|
-
__extends(_Conversation, _super);
|
|
11
|
-
function _Conversation() {
|
|
12
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(_Conversation.prototype, "threads", {
|
|
15
|
-
/**
|
|
16
|
-
* Get all the threads in a group conversation.
|
|
17
|
-
*/
|
|
18
|
-
get: function () {
|
|
19
|
-
return Threads(this);
|
|
20
|
-
},
|
|
21
|
-
enumerable: false,
|
|
22
|
-
configurable: true
|
|
23
|
-
});
|
|
24
|
-
_Conversation = __decorate([
|
|
25
|
-
updateable(),
|
|
26
|
-
deleteable()
|
|
27
|
-
], _Conversation);
|
|
28
|
-
return _Conversation;
|
|
29
|
-
}(_GraphQueryableInstance));
|
|
30
|
-
export { _Conversation };
|
|
31
|
-
export var Conversation = graphInvokableFactory(_Conversation);
|
|
32
|
-
/**
|
|
33
|
-
* Conversations
|
|
34
|
-
*/
|
|
35
|
-
var _Conversations = /** @class */ (function (_super) {
|
|
36
|
-
__extends(_Conversations, _super);
|
|
37
|
-
function _Conversations() {
|
|
38
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
39
|
-
}
|
|
40
|
-
_Conversations = __decorate([
|
|
41
|
-
defaultPath("conversations"),
|
|
42
|
-
addable(),
|
|
43
|
-
getById(Conversation)
|
|
44
|
-
], _Conversations);
|
|
45
|
-
return _Conversations;
|
|
46
|
-
}(_GraphQueryableCollection));
|
|
47
|
-
export { _Conversations };
|
|
48
|
-
export var Conversations = graphInvokableFactory(_Conversations);
|
|
49
|
-
/**
|
|
50
|
-
* Thread
|
|
51
|
-
*/
|
|
52
|
-
var _Thread = /** @class */ (function (_super) {
|
|
53
|
-
__extends(_Thread, _super);
|
|
54
|
-
function _Thread() {
|
|
55
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
56
|
-
}
|
|
57
|
-
Object.defineProperty(_Thread.prototype, "posts", {
|
|
58
|
-
/**
|
|
59
|
-
* Get all the threads in a group conversation.
|
|
60
|
-
*/
|
|
61
|
-
get: function () {
|
|
62
|
-
return Posts(this);
|
|
63
|
-
},
|
|
64
|
-
enumerable: false,
|
|
65
|
-
configurable: true
|
|
66
|
-
});
|
|
67
|
-
/**
|
|
68
|
-
* Reply to a thread in a group conversation and add a new post to it
|
|
69
|
-
*
|
|
70
|
-
* @param post Contents of the post
|
|
71
|
-
*/
|
|
72
|
-
_Thread.prototype.reply = function (post) {
|
|
73
|
-
return graphPost(this.clone(Thread, "reply"), body(post));
|
|
74
|
-
};
|
|
75
|
-
_Thread = __decorate([
|
|
76
|
-
deleteable()
|
|
77
|
-
], _Thread);
|
|
78
|
-
return _Thread;
|
|
79
|
-
}(_GraphQueryableInstance));
|
|
80
|
-
export { _Thread };
|
|
81
|
-
export var Thread = graphInvokableFactory(_Thread);
|
|
82
|
-
/**
|
|
83
|
-
* Threads
|
|
84
|
-
*/
|
|
85
|
-
var _Threads = /** @class */ (function (_super) {
|
|
86
|
-
__extends(_Threads, _super);
|
|
87
|
-
function _Threads() {
|
|
88
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
89
|
-
}
|
|
90
|
-
_Threads = __decorate([
|
|
91
|
-
defaultPath("threads"),
|
|
92
|
-
addable(),
|
|
93
|
-
getById(Thread)
|
|
94
|
-
], _Threads);
|
|
95
|
-
return _Threads;
|
|
96
|
-
}(_GraphQueryableCollection));
|
|
97
|
-
export { _Threads };
|
|
98
|
-
export var Threads = graphInvokableFactory(_Threads);
|
|
99
|
-
/**
|
|
100
|
-
* Post
|
|
101
|
-
*/
|
|
102
|
-
var _Post = /** @class */ (function (_super) {
|
|
103
|
-
__extends(_Post, _super);
|
|
104
|
-
function _Post() {
|
|
105
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Forward a post to a recipient
|
|
109
|
-
*/
|
|
110
|
-
_Post.prototype.forward = function (info) {
|
|
111
|
-
return graphPost(this.clone(Post, "forward"), body(info));
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* Reply to a thread in a group conversation and add a new post to it
|
|
115
|
-
*
|
|
116
|
-
* @param post Contents of the post
|
|
117
|
-
*/
|
|
118
|
-
_Post.prototype.reply = function (post) {
|
|
119
|
-
return graphPost(this.clone(Post, "reply"), body(post));
|
|
120
|
-
};
|
|
121
|
-
_Post = __decorate([
|
|
122
|
-
deleteable()
|
|
123
|
-
], _Post);
|
|
124
|
-
return _Post;
|
|
125
|
-
}(_GraphQueryableInstance));
|
|
126
|
-
export { _Post };
|
|
127
|
-
export var Post = graphInvokableFactory(_Post);
|
|
128
|
-
/**
|
|
129
|
-
* Posts
|
|
130
|
-
*/
|
|
131
|
-
var _Posts = /** @class */ (function (_super) {
|
|
132
|
-
__extends(_Posts, _super);
|
|
133
|
-
function _Posts() {
|
|
134
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
135
|
-
}
|
|
136
|
-
_Posts = __decorate([
|
|
137
|
-
defaultPath("posts"),
|
|
138
|
-
addable(),
|
|
139
|
-
getById(Post)
|
|
140
|
-
], _Posts);
|
|
141
|
-
return _Posts;
|
|
142
|
-
}(_GraphQueryableCollection));
|
|
143
|
-
export { _Posts };
|
|
144
|
-
export var Posts = graphInvokableFactory(_Posts);
|
|
145
|
-
/**
|
|
146
|
-
* Senders
|
|
147
|
-
*/
|
|
148
|
-
var _Senders = /** @class */ (function (_super) {
|
|
149
|
-
__extends(_Senders, _super);
|
|
150
|
-
function _Senders() {
|
|
151
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Add a new user or group to this senders collection
|
|
155
|
-
* @param id The full @odata.id value to add (ex: https://graph.microsoft.com/v1.0/users/user@contoso.com)
|
|
156
|
-
*/
|
|
157
|
-
_Senders.prototype.add = function (id) {
|
|
158
|
-
return graphPost(this.clone(Senders, "$ref"), body({ "@odata.id": id }));
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* Removes the entity from the collection
|
|
162
|
-
*
|
|
163
|
-
* @param id The full @odata.id value to remove (ex: https://graph.microsoft.com/v1.0/users/user@contoso.com)
|
|
164
|
-
*/
|
|
165
|
-
_Senders.prototype.remove = function (id) {
|
|
166
|
-
var remover = this.clone(Senders, "$ref");
|
|
167
|
-
remover.query.set("$id", id);
|
|
168
|
-
return graphDelete(remover);
|
|
169
|
-
};
|
|
170
|
-
return _Senders;
|
|
171
|
-
}(_GraphQueryableCollection));
|
|
172
|
-
export { _Senders };
|
|
173
|
-
export var Senders = graphInvokableFactory(_Senders);
|
|
1
|
+
import { __decorate, __extends } from "tslib";
|
|
2
|
+
import { body } from "@pnp/odata";
|
|
3
|
+
import { _GraphQueryableCollection, _GraphQueryableInstance, graphInvokableFactory, } from "../graphqueryable.js";
|
|
4
|
+
import { defaultPath, updateable, deleteable, addable, getById } from "../decorators.js";
|
|
5
|
+
import { graphPost, graphDelete } from "../operations.js";
|
|
6
|
+
/**
|
|
7
|
+
* Conversation
|
|
8
|
+
*/
|
|
9
|
+
var _Conversation = /** @class */ (function (_super) {
|
|
10
|
+
__extends(_Conversation, _super);
|
|
11
|
+
function _Conversation() {
|
|
12
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(_Conversation.prototype, "threads", {
|
|
15
|
+
/**
|
|
16
|
+
* Get all the threads in a group conversation.
|
|
17
|
+
*/
|
|
18
|
+
get: function () {
|
|
19
|
+
return Threads(this);
|
|
20
|
+
},
|
|
21
|
+
enumerable: false,
|
|
22
|
+
configurable: true
|
|
23
|
+
});
|
|
24
|
+
_Conversation = __decorate([
|
|
25
|
+
updateable(),
|
|
26
|
+
deleteable()
|
|
27
|
+
], _Conversation);
|
|
28
|
+
return _Conversation;
|
|
29
|
+
}(_GraphQueryableInstance));
|
|
30
|
+
export { _Conversation };
|
|
31
|
+
export var Conversation = graphInvokableFactory(_Conversation);
|
|
32
|
+
/**
|
|
33
|
+
* Conversations
|
|
34
|
+
*/
|
|
35
|
+
var _Conversations = /** @class */ (function (_super) {
|
|
36
|
+
__extends(_Conversations, _super);
|
|
37
|
+
function _Conversations() {
|
|
38
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
39
|
+
}
|
|
40
|
+
_Conversations = __decorate([
|
|
41
|
+
defaultPath("conversations"),
|
|
42
|
+
addable(),
|
|
43
|
+
getById(Conversation)
|
|
44
|
+
], _Conversations);
|
|
45
|
+
return _Conversations;
|
|
46
|
+
}(_GraphQueryableCollection));
|
|
47
|
+
export { _Conversations };
|
|
48
|
+
export var Conversations = graphInvokableFactory(_Conversations);
|
|
49
|
+
/**
|
|
50
|
+
* Thread
|
|
51
|
+
*/
|
|
52
|
+
var _Thread = /** @class */ (function (_super) {
|
|
53
|
+
__extends(_Thread, _super);
|
|
54
|
+
function _Thread() {
|
|
55
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
56
|
+
}
|
|
57
|
+
Object.defineProperty(_Thread.prototype, "posts", {
|
|
58
|
+
/**
|
|
59
|
+
* Get all the threads in a group conversation.
|
|
60
|
+
*/
|
|
61
|
+
get: function () {
|
|
62
|
+
return Posts(this);
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* Reply to a thread in a group conversation and add a new post to it
|
|
69
|
+
*
|
|
70
|
+
* @param post Contents of the post
|
|
71
|
+
*/
|
|
72
|
+
_Thread.prototype.reply = function (post) {
|
|
73
|
+
return graphPost(this.clone(Thread, "reply"), body(post));
|
|
74
|
+
};
|
|
75
|
+
_Thread = __decorate([
|
|
76
|
+
deleteable()
|
|
77
|
+
], _Thread);
|
|
78
|
+
return _Thread;
|
|
79
|
+
}(_GraphQueryableInstance));
|
|
80
|
+
export { _Thread };
|
|
81
|
+
export var Thread = graphInvokableFactory(_Thread);
|
|
82
|
+
/**
|
|
83
|
+
* Threads
|
|
84
|
+
*/
|
|
85
|
+
var _Threads = /** @class */ (function (_super) {
|
|
86
|
+
__extends(_Threads, _super);
|
|
87
|
+
function _Threads() {
|
|
88
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
89
|
+
}
|
|
90
|
+
_Threads = __decorate([
|
|
91
|
+
defaultPath("threads"),
|
|
92
|
+
addable(),
|
|
93
|
+
getById(Thread)
|
|
94
|
+
], _Threads);
|
|
95
|
+
return _Threads;
|
|
96
|
+
}(_GraphQueryableCollection));
|
|
97
|
+
export { _Threads };
|
|
98
|
+
export var Threads = graphInvokableFactory(_Threads);
|
|
99
|
+
/**
|
|
100
|
+
* Post
|
|
101
|
+
*/
|
|
102
|
+
var _Post = /** @class */ (function (_super) {
|
|
103
|
+
__extends(_Post, _super);
|
|
104
|
+
function _Post() {
|
|
105
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Forward a post to a recipient
|
|
109
|
+
*/
|
|
110
|
+
_Post.prototype.forward = function (info) {
|
|
111
|
+
return graphPost(this.clone(Post, "forward"), body(info));
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Reply to a thread in a group conversation and add a new post to it
|
|
115
|
+
*
|
|
116
|
+
* @param post Contents of the post
|
|
117
|
+
*/
|
|
118
|
+
_Post.prototype.reply = function (post) {
|
|
119
|
+
return graphPost(this.clone(Post, "reply"), body(post));
|
|
120
|
+
};
|
|
121
|
+
_Post = __decorate([
|
|
122
|
+
deleteable()
|
|
123
|
+
], _Post);
|
|
124
|
+
return _Post;
|
|
125
|
+
}(_GraphQueryableInstance));
|
|
126
|
+
export { _Post };
|
|
127
|
+
export var Post = graphInvokableFactory(_Post);
|
|
128
|
+
/**
|
|
129
|
+
* Posts
|
|
130
|
+
*/
|
|
131
|
+
var _Posts = /** @class */ (function (_super) {
|
|
132
|
+
__extends(_Posts, _super);
|
|
133
|
+
function _Posts() {
|
|
134
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
135
|
+
}
|
|
136
|
+
_Posts = __decorate([
|
|
137
|
+
defaultPath("posts"),
|
|
138
|
+
addable(),
|
|
139
|
+
getById(Post)
|
|
140
|
+
], _Posts);
|
|
141
|
+
return _Posts;
|
|
142
|
+
}(_GraphQueryableCollection));
|
|
143
|
+
export { _Posts };
|
|
144
|
+
export var Posts = graphInvokableFactory(_Posts);
|
|
145
|
+
/**
|
|
146
|
+
* Senders
|
|
147
|
+
*/
|
|
148
|
+
var _Senders = /** @class */ (function (_super) {
|
|
149
|
+
__extends(_Senders, _super);
|
|
150
|
+
function _Senders() {
|
|
151
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Add a new user or group to this senders collection
|
|
155
|
+
* @param id The full @odata.id value to add (ex: https://graph.microsoft.com/v1.0/users/user@contoso.com)
|
|
156
|
+
*/
|
|
157
|
+
_Senders.prototype.add = function (id) {
|
|
158
|
+
return graphPost(this.clone(Senders, "$ref"), body({ "@odata.id": id }));
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Removes the entity from the collection
|
|
162
|
+
*
|
|
163
|
+
* @param id The full @odata.id value to remove (ex: https://graph.microsoft.com/v1.0/users/user@contoso.com)
|
|
164
|
+
*/
|
|
165
|
+
_Senders.prototype.remove = function (id) {
|
|
166
|
+
var remover = this.clone(Senders, "$ref");
|
|
167
|
+
remover.query.set("$id", id);
|
|
168
|
+
return graphDelete(remover);
|
|
169
|
+
};
|
|
170
|
+
return _Senders;
|
|
171
|
+
}(_GraphQueryableCollection));
|
|
172
|
+
export { _Senders };
|
|
173
|
+
export var Senders = graphInvokableFactory(_Senders);
|
|
174
174
|
//# sourceMappingURL=types.js.map
|
package/decorators.d.ts
CHANGED
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
import { IGraphQueryable } from "./graphqueryable.js";
|
|
2
|
-
/**
|
|
3
|
-
* Decorator used to specify the default path for Queryable objects
|
|
4
|
-
*
|
|
5
|
-
* @param path
|
|
6
|
-
*/
|
|
7
|
-
export declare function defaultPath(path: string): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
8
|
-
new (...args: any[]): {};
|
|
9
|
-
} & T;
|
|
10
|
-
/**
|
|
11
|
-
* Adds the delete method to the tagged class
|
|
12
|
-
*/
|
|
13
|
-
export declare function deleteable(): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
14
|
-
new (...args: any[]): {
|
|
15
|
-
delete(this: IGraphQueryable): Promise<void>;
|
|
16
|
-
};
|
|
17
|
-
} & T;
|
|
18
|
-
export interface IDeleteable {
|
|
19
|
-
/**
|
|
20
|
-
* Delete this instance
|
|
21
|
-
*/
|
|
22
|
-
delete(): Promise<void>;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Adds the delete method to the tagged class
|
|
26
|
-
*/
|
|
27
|
-
export declare function deleteableWithETag(): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
28
|
-
new (...args: any[]): {
|
|
29
|
-
delete(this: IGraphQueryable, eTag?: string): Promise<void>;
|
|
30
|
-
};
|
|
31
|
-
} & T;
|
|
32
|
-
export interface IDeleteableWithETag {
|
|
33
|
-
/**
|
|
34
|
-
* Delete this instance
|
|
35
|
-
*/
|
|
36
|
-
delete(eTag?: string): Promise<void>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Adds the update method to the tagged class
|
|
40
|
-
*/
|
|
41
|
-
export declare function updateable(): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
42
|
-
new (...args: any[]): {
|
|
43
|
-
update(this: IGraphQueryable, props: any): Promise<void>;
|
|
44
|
-
};
|
|
45
|
-
} & T;
|
|
46
|
-
export interface IUpdateable<T = any> {
|
|
47
|
-
/**
|
|
48
|
-
* Update the properties of an event object
|
|
49
|
-
*
|
|
50
|
-
* @param props Set of properties to update
|
|
51
|
-
*/
|
|
52
|
-
update(props: T): Promise<void>;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Adds the update method to the tagged class
|
|
56
|
-
*/
|
|
57
|
-
export declare function updateableWithETag(): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
58
|
-
new (...args: any[]): {
|
|
59
|
-
update(this: IGraphQueryable, props: any, eTag?: string): Promise<void>;
|
|
60
|
-
};
|
|
61
|
-
} & T;
|
|
62
|
-
export interface IUpdateableWithETag<T = any> {
|
|
63
|
-
/**
|
|
64
|
-
* Update the properties of an event object
|
|
65
|
-
*
|
|
66
|
-
* @param props Set of properties to update
|
|
67
|
-
*/
|
|
68
|
-
update(props: T, eTag?: string): Promise<void>;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Adds the add method to the tagged class
|
|
72
|
-
*/
|
|
73
|
-
export declare function addable(): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
74
|
-
new (...args: any[]): {
|
|
75
|
-
add(this: IGraphQueryable, props: any): Promise<void>;
|
|
76
|
-
};
|
|
77
|
-
} & T;
|
|
78
|
-
export interface IAddable<T = any, R = {
|
|
79
|
-
id: string;
|
|
80
|
-
}> {
|
|
81
|
-
/**
|
|
82
|
-
* Adds a new item to this collection
|
|
83
|
-
*
|
|
84
|
-
* @param props properties used to create the new thread
|
|
85
|
-
*/
|
|
86
|
-
add(props: T): Promise<R>;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Adds the getById method to a collection
|
|
90
|
-
*/
|
|
91
|
-
export declare function getById<R>(factory: (...args: any[]) => R): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
92
|
-
new (...args: any[]): {
|
|
93
|
-
getById(this: IGraphQueryable, id: string): R;
|
|
94
|
-
};
|
|
95
|
-
} & T;
|
|
96
|
-
export interface IGetById<R = any, T = string> {
|
|
97
|
-
/**
|
|
98
|
-
* Adds a new item to this collection
|
|
99
|
-
*
|
|
100
|
-
* @param props properties used to create the new thread
|
|
101
|
-
*/
|
|
102
|
-
getById(id: T): R;
|
|
103
|
-
}
|
|
1
|
+
import { IGraphQueryable } from "./graphqueryable.js";
|
|
2
|
+
/**
|
|
3
|
+
* Decorator used to specify the default path for Queryable objects
|
|
4
|
+
*
|
|
5
|
+
* @param path
|
|
6
|
+
*/
|
|
7
|
+
export declare function defaultPath(path: string): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
8
|
+
new (...args: any[]): {};
|
|
9
|
+
} & T;
|
|
10
|
+
/**
|
|
11
|
+
* Adds the delete method to the tagged class
|
|
12
|
+
*/
|
|
13
|
+
export declare function deleteable(): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
14
|
+
new (...args: any[]): {
|
|
15
|
+
delete(this: IGraphQueryable): Promise<void>;
|
|
16
|
+
};
|
|
17
|
+
} & T;
|
|
18
|
+
export interface IDeleteable {
|
|
19
|
+
/**
|
|
20
|
+
* Delete this instance
|
|
21
|
+
*/
|
|
22
|
+
delete(): Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Adds the delete method to the tagged class
|
|
26
|
+
*/
|
|
27
|
+
export declare function deleteableWithETag(): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
28
|
+
new (...args: any[]): {
|
|
29
|
+
delete(this: IGraphQueryable, eTag?: string): Promise<void>;
|
|
30
|
+
};
|
|
31
|
+
} & T;
|
|
32
|
+
export interface IDeleteableWithETag {
|
|
33
|
+
/**
|
|
34
|
+
* Delete this instance
|
|
35
|
+
*/
|
|
36
|
+
delete(eTag?: string): Promise<void>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Adds the update method to the tagged class
|
|
40
|
+
*/
|
|
41
|
+
export declare function updateable(): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
42
|
+
new (...args: any[]): {
|
|
43
|
+
update(this: IGraphQueryable, props: any): Promise<void>;
|
|
44
|
+
};
|
|
45
|
+
} & T;
|
|
46
|
+
export interface IUpdateable<T = any> {
|
|
47
|
+
/**
|
|
48
|
+
* Update the properties of an event object
|
|
49
|
+
*
|
|
50
|
+
* @param props Set of properties to update
|
|
51
|
+
*/
|
|
52
|
+
update(props: T): Promise<void>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Adds the update method to the tagged class
|
|
56
|
+
*/
|
|
57
|
+
export declare function updateableWithETag(): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
58
|
+
new (...args: any[]): {
|
|
59
|
+
update(this: IGraphQueryable, props: any, eTag?: string): Promise<void>;
|
|
60
|
+
};
|
|
61
|
+
} & T;
|
|
62
|
+
export interface IUpdateableWithETag<T = any> {
|
|
63
|
+
/**
|
|
64
|
+
* Update the properties of an event object
|
|
65
|
+
*
|
|
66
|
+
* @param props Set of properties to update
|
|
67
|
+
*/
|
|
68
|
+
update(props: T, eTag?: string): Promise<void>;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Adds the add method to the tagged class
|
|
72
|
+
*/
|
|
73
|
+
export declare function addable(): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
74
|
+
new (...args: any[]): {
|
|
75
|
+
add(this: IGraphQueryable, props: any): Promise<void>;
|
|
76
|
+
};
|
|
77
|
+
} & T;
|
|
78
|
+
export interface IAddable<T = any, R = {
|
|
79
|
+
id: string;
|
|
80
|
+
}> {
|
|
81
|
+
/**
|
|
82
|
+
* Adds a new item to this collection
|
|
83
|
+
*
|
|
84
|
+
* @param props properties used to create the new thread
|
|
85
|
+
*/
|
|
86
|
+
add(props: T): Promise<R>;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Adds the getById method to a collection
|
|
90
|
+
*/
|
|
91
|
+
export declare function getById<R>(factory: (...args: any[]) => R): <T extends new (...args: any[]) => {}>(target: T) => {
|
|
92
|
+
new (...args: any[]): {
|
|
93
|
+
getById(this: IGraphQueryable, id: string): R;
|
|
94
|
+
};
|
|
95
|
+
} & T;
|
|
96
|
+
export interface IGetById<R = any, T = string> {
|
|
97
|
+
/**
|
|
98
|
+
* Adds a new item to this collection
|
|
99
|
+
*
|
|
100
|
+
* @param props properties used to create the new thread
|
|
101
|
+
*/
|
|
102
|
+
getById(id: T): R;
|
|
103
|
+
}
|
|
104
104
|
//# sourceMappingURL=decorators.d.ts.map
|