@pnp/graph 3.3.2 → 3.4.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/behaviors/consistency-level.d.ts +4 -0
- package/behaviors/consistency-level.d.ts.map +1 -0
- package/behaviors/consistency-level.js +10 -0
- package/behaviors/consistency-level.js.map +1 -0
- package/behaviors/paged.d.ts +21 -0
- package/behaviors/paged.d.ts.map +1 -0
- package/behaviors/paged.js +44 -0
- package/behaviors/paged.js.map +1 -0
- package/behaviors/telemetry.js +1 -1
- package/bookings/funcs.d.ts +11 -0
- package/bookings/funcs.d.ts.map +1 -0
- package/bookings/funcs.js +15 -0
- package/bookings/funcs.js.map +1 -0
- package/bookings/index.d.ts +9 -0
- package/bookings/index.d.ts.map +1 -0
- package/bookings/index.js +18 -0
- package/bookings/index.js.map +1 -0
- package/bookings/types.d.ts +241 -0
- package/bookings/types.d.ts.map +1 -0
- package/bookings/types.js +298 -0
- package/bookings/types.js.map +1 -0
- package/graphqueryable.d.ts +12 -41
- package/graphqueryable.d.ts.map +1 -1
- package/graphqueryable.js +23 -13
- package/graphqueryable.js.map +1 -1
- package/groups/types.d.ts +3 -3
- package/groups/types.d.ts.map +1 -1
- package/groups/types.js +3 -3
- package/groups/types.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/messages/types.d.ts +2 -2
- package/messages/types.d.ts.map +1 -1
- package/messages/types.js +2 -2
- package/messages/types.js.map +1 -1
- package/package.json +5 -5
- package/users/types.d.ts +3 -3
- package/users/types.d.ts.map +1 -1
- package/users/types.js +3 -3
- package/users/types.js.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consistency-level.d.ts","sourceRoot":"","sources":["../../../../packages/graph/behaviors/consistency-level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,wBAAgB,gBAAgB,CAAC,KAAK,SAAa,GAAG,YAAY,CAAC,SAAS,CAAC,CAa5E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function ConsistencyLevel(level = "eventual") {
|
|
2
|
+
return (instance) => {
|
|
3
|
+
instance.on.pre(async function (url, init, result) {
|
|
4
|
+
init.headers = { ...init.headers, "ConsistencyLevel": level };
|
|
5
|
+
return [url, init, result];
|
|
6
|
+
});
|
|
7
|
+
return instance;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=consistency-level.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consistency-level.js","sourceRoot":"","sources":["../../../../packages/graph/behaviors/consistency-level.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,gBAAgB,CAAC,KAAK,GAAG,UAAU;IAE/C,OAAO,CAAC,QAAmB,EAAE,EAAE;QAE3B,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,WAA4B,GAAG,EAAE,IAAI,EAAE,MAAM;YAE9D,IAAI,CAAC,OAAO,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAC;YAE9D,OAAO,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IACpB,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TimelinePipe } from "@pnp/core";
|
|
2
|
+
import { IGraphQueryableCollection } from "../graphqueryable.js";
|
|
3
|
+
export interface IPagedResult {
|
|
4
|
+
value: any[] | null;
|
|
5
|
+
hasNext: boolean;
|
|
6
|
+
next(): Promise<IPagedResult>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Configures a collection query to returned paged results
|
|
10
|
+
*
|
|
11
|
+
* @param col Collection forming the basis of the paged collection, this param is NOT modified
|
|
12
|
+
* @returns A duplicate collection which will return paged results
|
|
13
|
+
*/
|
|
14
|
+
export declare function AsPaged(col: IGraphQueryableCollection): IGraphQueryableCollection;
|
|
15
|
+
/**
|
|
16
|
+
* Behavior that converts results to pages when used with a collection (exposed through the paged method of GraphCollection)
|
|
17
|
+
*
|
|
18
|
+
* @returns A TimelinePipe used to configure the queryable
|
|
19
|
+
*/
|
|
20
|
+
export declare function Paged(): TimelinePipe;
|
|
21
|
+
//# sourceMappingURL=paged.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paged.d.ts","sourceRoot":"","sources":["../../../../packages/graph/behaviors/paged.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9D,OAAO,EAA6C,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAE5G,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;CACjC;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,yBAAyB,GAAG,yBAAyB,CAcjF;AAED;;;;GAIG;AACH,wBAAgB,KAAK,IAAI,YAAY,CAwBpC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { stringIsNullOrEmpty } from "@pnp/core";
|
|
2
|
+
import { errorCheck, parseODataJSON } from "@pnp/queryable";
|
|
3
|
+
import { GraphQueryableCollection } from "../graphqueryable.js";
|
|
4
|
+
/**
|
|
5
|
+
* Configures a collection query to returned paged results
|
|
6
|
+
*
|
|
7
|
+
* @param col Collection forming the basis of the paged collection, this param is NOT modified
|
|
8
|
+
* @returns A duplicate collection which will return paged results
|
|
9
|
+
*/
|
|
10
|
+
export function AsPaged(col) {
|
|
11
|
+
const q = GraphQueryableCollection(col).using(Paged());
|
|
12
|
+
const queryParams = ["$top", "$select", "$expand", "$filter", "$orderby"];
|
|
13
|
+
for (let i = 0; i < queryParams.length; i++) {
|
|
14
|
+
const param = col.query.get(queryParams[i]);
|
|
15
|
+
if (param !== undefined) {
|
|
16
|
+
q.query.set(queryParams[i], param);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return q;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Behavior that converts results to pages when used with a collection (exposed through the paged method of GraphCollection)
|
|
23
|
+
*
|
|
24
|
+
* @returns A TimelinePipe used to configure the queryable
|
|
25
|
+
*/
|
|
26
|
+
export function Paged() {
|
|
27
|
+
return (instance) => {
|
|
28
|
+
instance.on.parse.replace(errorCheck);
|
|
29
|
+
instance.on.parse(async (url, response, result) => {
|
|
30
|
+
const txt = await response.text();
|
|
31
|
+
const json = txt.replace(/\s/ig, "").length > 0 ? JSON.parse(txt) : {};
|
|
32
|
+
const nextLink = json["@odata.nextLink"];
|
|
33
|
+
const hasNext = !stringIsNullOrEmpty(nextLink);
|
|
34
|
+
result = {
|
|
35
|
+
hasNext,
|
|
36
|
+
next: () => (hasNext ? AsPaged(GraphQueryableCollection([instance, nextLink]))() : null),
|
|
37
|
+
value: parseODataJSON(json),
|
|
38
|
+
};
|
|
39
|
+
return [url, response, result];
|
|
40
|
+
});
|
|
41
|
+
return instance;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=paged.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paged.js","sourceRoot":"","sources":["../../../../packages/graph/behaviors/paged.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAgB,MAAM,WAAW,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAA8C,MAAM,sBAAsB,CAAC;AAQ5G;;;;;GAKG;AACH,MAA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;gBACP,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;gBACxF,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC;aAC9B,CAAC;YAEF,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IACpB,CAAC,CAAC;AACN,CAAC"}
|
package/behaviors/telemetry.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function Telemetry() {
|
|
2
2
|
return (instance) => {
|
|
3
3
|
instance.on.pre(async function (url, init, result) {
|
|
4
|
-
init.headers = { ...init.headers, SdkVersion: "PnPCoreJS/3.
|
|
4
|
+
init.headers = { ...init.headers, SdkVersion: "PnPCoreJS/3.4.0" };
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/dot-notation
|
|
6
6
|
this.log(`Request Tag: ${init.headers["SdkVersion"]}`, 0);
|
|
7
7
|
return [url, init, result];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IGraphQueryable, IGraphQueryableCollection } from "../graphqueryable.js";
|
|
2
|
+
import { BookingAppointment as IBookingAppointmentEntity } from "@microsoft/microsoft-graph-types";
|
|
3
|
+
/**
|
|
4
|
+
* Get the collection of bookingAppointment objects for a bookingBusiness, that occurs in the specified date range.
|
|
5
|
+
*
|
|
6
|
+
* @param this IGraphQueryable instance
|
|
7
|
+
* @param start start time
|
|
8
|
+
* @param end end time
|
|
9
|
+
*/
|
|
10
|
+
export declare function calendarView(this: IGraphQueryable, start: string, end: string): IGraphQueryableCollection<IBookingAppointmentEntity[]>;
|
|
11
|
+
//# sourceMappingURL=funcs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"funcs.d.ts","sourceRoot":"","sources":["../../../../packages/graph/bookings/funcs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAA4B,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAC5G,OAAO,EAAE,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAEnG;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,yBAAyB,CAAC,yBAAyB,EAAE,CAAC,CAMtI"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GraphQueryableCollection } from "../graphqueryable.js";
|
|
2
|
+
/**
|
|
3
|
+
* Get the collection of bookingAppointment objects for a bookingBusiness, that occurs in the specified date range.
|
|
4
|
+
*
|
|
5
|
+
* @param this IGraphQueryable instance
|
|
6
|
+
* @param start start time
|
|
7
|
+
* @param end end time
|
|
8
|
+
*/
|
|
9
|
+
export function calendarView(start, end) {
|
|
10
|
+
const query = GraphQueryableCollection(this, "calendarView");
|
|
11
|
+
query.query.set("startDateTime", start);
|
|
12
|
+
query.query.set("endDateTime", end);
|
|
13
|
+
return query;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=funcs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"funcs.js","sourceRoot":"","sources":["../../../../packages/graph/bookings/funcs.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,wBAAwB,EAA6B,MAAM,sBAAsB,CAAC;AAG5G;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAwB,KAAa,EAAE,GAAW;IAE1E,MAAM,KAAK,GAAG,wBAAwB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC7D,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IACxC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;IACpC,OAAO,KAAK,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IBookingBusinesses, IBookingCurrencies } from "./types.js";
|
|
2
|
+
export { BookingCurrencies, BookingCurrency, BookingBusinesses, BookingBusiness, BookingAppointments, BookingAppointment, BookingCustomers, BookingCustomer, BookingServices, BookingService, BookingStaffMembers, BookingStaffMember, BookingCustomQuestions, BookingCustomQuestion, IBookingBusinessAddResult, IBookingAppointmentAddResult, IBookingCustomerAddResult, IBookingServiceAddResult, IBookingStaffMemberAddResult, IBookingCustomQuestionAddResult, IBookingCurrencies, IBookingCurrency, IBookingBusinesses, IBookingBusiness, IBookingAppointments, IBookingAppointment, IBookingCustomers, IBookingCustomer, IBookingServices, IBookingService, IBookingStaffMembers, IBookingStaffMember, IBookingCustomQuestions, IBookingCustomQuestion, } from "./types.js";
|
|
3
|
+
declare module "../fi" {
|
|
4
|
+
interface GraphFI {
|
|
5
|
+
readonly bookingBusinesses: IBookingBusinesses;
|
|
6
|
+
readonly bookingCurrencies: IBookingCurrencies;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/graph/bookings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAG1G,OAAO,EACH,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,+BAA+B,EAC/B,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,GACzB,MAAM,YAAY,CAAC;AAEpB,OAAO,QAAQ,OAAO,CAAC;IACnB,UAAU,OAAO;QACb,QAAQ,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;QAC/C,QAAQ,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;KAClD;CACJ"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BookingBusinesses, BookingCurrencies } from "./types.js";
|
|
2
|
+
import { GraphFI } from "../fi.js";
|
|
3
|
+
export { BookingCurrencies, BookingCurrency, BookingBusinesses, BookingBusiness, BookingAppointments, BookingAppointment, BookingCustomers, BookingCustomer, BookingServices, BookingService, BookingStaffMembers, BookingStaffMember, BookingCustomQuestions, BookingCustomQuestion, } from "./types.js";
|
|
4
|
+
Reflect.defineProperty(GraphFI.prototype, "bookingBusinesses", {
|
|
5
|
+
configurable: true,
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () {
|
|
8
|
+
return this.create(BookingBusinesses);
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
Reflect.defineProperty(GraphFI.prototype, "bookingCurrencies", {
|
|
12
|
+
configurable: true,
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return this.create(BookingCurrencies);
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/graph/bookings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAA0C,MAAM,YAAY,CAAC;AAC1G,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,OAAO,EACH,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,GAqBxB,MAAM,YAAY,CAAC;AASpB,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,SAAS,EAAE,mBAAmB,EAAE;IAC3D,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,GAAG,EAAE;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC1C,CAAC;CACJ,CAAC,CAAC;AAEH,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,SAAS,EAAE,mBAAmB,EAAE;IAC3D,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,GAAG,EAAE;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC1C,CAAC;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { BookingBusiness as IBookingBusinessEntity, BookingAppointment as IBookingAppointmentEntity, BookingCustomer as IBookingCustomerEntity, BookingService as IBookingServiceEntity, BookingStaffMember as IBookingStaffMemberEntity, BookingCurrency as IBookingCurrencyEntity, BookingCustomQuestion as IBookingCustomQuestionEntity } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import { _DirectoryObject } from "../directory-objects/types.js";
|
|
3
|
+
import { _GraphQueryableCollection } from "../graphqueryable.js";
|
|
4
|
+
import { IDeleteable, IUpdateable, IGetById } from "../decorators.js";
|
|
5
|
+
import { calendarView } from "./funcs.js";
|
|
6
|
+
/**
|
|
7
|
+
* Describes a Booking Currency entity
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare class _BookingCurrency extends _DirectoryObject<IBookingCurrencyEntity> {
|
|
11
|
+
}
|
|
12
|
+
export interface IBookingCurrency extends _BookingCurrency {
|
|
13
|
+
}
|
|
14
|
+
export declare const BookingCurrency: import("../graphqueryable.js").IGraphInvokableFactory<IBookingCurrency>;
|
|
15
|
+
/**
|
|
16
|
+
* Describes a collection of Booking Currency objects
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare class _BookingCurrencies extends _GraphQueryableCollection<IBookingCurrencyEntity[]> {
|
|
20
|
+
}
|
|
21
|
+
export interface IBookingCurrencies extends _BookingCurrencies, IGetById<IBookingCurrency> {
|
|
22
|
+
}
|
|
23
|
+
export declare const BookingCurrencies: import("../graphqueryable.js").IGraphInvokableFactory<IBookingCurrencies>;
|
|
24
|
+
/**
|
|
25
|
+
* Represents a booking business entity
|
|
26
|
+
*/
|
|
27
|
+
export declare class _BookingBusiness extends _DirectoryObject<IBookingBusinessEntity> {
|
|
28
|
+
/**
|
|
29
|
+
* Get the calendar view for the booking business.
|
|
30
|
+
*/
|
|
31
|
+
calendarView: typeof calendarView;
|
|
32
|
+
/**
|
|
33
|
+
* Make the scheduling page of a business available to external customers.
|
|
34
|
+
*/
|
|
35
|
+
publish(): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Make the scheduling page of this business not available to external customers.
|
|
38
|
+
*/
|
|
39
|
+
unpublish(): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Get the appointments for the booking business.
|
|
42
|
+
*/
|
|
43
|
+
get appointments(): IBookingAppointments;
|
|
44
|
+
/**
|
|
45
|
+
* Get the customers for the booking business.
|
|
46
|
+
*/
|
|
47
|
+
get customers(): IBookingCustomers;
|
|
48
|
+
/**
|
|
49
|
+
* Get the services for the booking business.
|
|
50
|
+
*/
|
|
51
|
+
get services(): IBookingServices;
|
|
52
|
+
/**
|
|
53
|
+
* Get the staff members for the booking business.
|
|
54
|
+
*/
|
|
55
|
+
get staffMembers(): IBookingStaffMembers;
|
|
56
|
+
/**
|
|
57
|
+
* Get the staff members for the booking business.
|
|
58
|
+
*/
|
|
59
|
+
get customQuestions(): IBookingCustomQuestions;
|
|
60
|
+
}
|
|
61
|
+
export interface IBookingBusiness extends _BookingBusiness, IDeleteable, IUpdateable {
|
|
62
|
+
}
|
|
63
|
+
export declare const BookingBusiness: import("../graphqueryable.js").IGraphInvokableFactory<IBookingBusiness>;
|
|
64
|
+
/**
|
|
65
|
+
* Describes a collection of Booking Business objects
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
export declare class _BookingBusinesses extends _GraphQueryableCollection<IBookingBusinessEntity[]> {
|
|
69
|
+
/**
|
|
70
|
+
* Create a new booking business as specified in the request body.
|
|
71
|
+
*
|
|
72
|
+
* @param name The name of the business, which interfaces with customers. This name appears at the top of the business scheduling page.
|
|
73
|
+
* @param additionalProperties A plain object collection of additional properties you want to set on the new group of type IBookingBusiness
|
|
74
|
+
*/
|
|
75
|
+
add(name: string, additionalProperties?: Record<string, any>): Promise<IBookingBusinessAddResult>;
|
|
76
|
+
}
|
|
77
|
+
export interface IBookingBusinesses extends _BookingBusinesses, IGetById<IBookingBusiness> {
|
|
78
|
+
}
|
|
79
|
+
export declare const BookingBusinesses: import("../graphqueryable.js").IGraphInvokableFactory<IBookingBusinesses>;
|
|
80
|
+
/**
|
|
81
|
+
* Represents a booking appointment entity
|
|
82
|
+
*/
|
|
83
|
+
export declare class _BookingApointment extends _DirectoryObject<IBookingAppointmentEntity> {
|
|
84
|
+
/**
|
|
85
|
+
* Cancel the specified bookingAppointment in the specified bookingBusiness and send a message to the involved customer and staff members.
|
|
86
|
+
*/
|
|
87
|
+
cancel(cancellationMessage: string): Promise<void>;
|
|
88
|
+
}
|
|
89
|
+
export interface IBookingAppointment extends _BookingApointment, IDeleteable, IUpdateable {
|
|
90
|
+
}
|
|
91
|
+
export declare const BookingAppointment: import("../graphqueryable.js").IGraphInvokableFactory<IBookingAppointment>;
|
|
92
|
+
/**
|
|
93
|
+
* Describes a collection of booking appointment objects
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
export declare class _BookingAppointments extends _GraphQueryableCollection<IBookingAppointmentEntity[]> {
|
|
97
|
+
/**
|
|
98
|
+
* Create a new booking appointment as specified in the request body.
|
|
99
|
+
*
|
|
100
|
+
* @param bookingAppointment a JSON representation of a BookingAppointment object.
|
|
101
|
+
*/
|
|
102
|
+
add(bookingAppointment: IBookingAppointmentEntity): Promise<IBookingAppointmentAddResult>;
|
|
103
|
+
}
|
|
104
|
+
export interface IBookingAppointments extends _BookingAppointments, IGetById<IBookingAppointment> {
|
|
105
|
+
}
|
|
106
|
+
export declare const BookingAppointments: import("../graphqueryable.js").IGraphInvokableFactory<IBookingAppointments>;
|
|
107
|
+
/**
|
|
108
|
+
* Represents a booking customer entity
|
|
109
|
+
*/
|
|
110
|
+
export declare class _BookingCustomer extends _DirectoryObject<IBookingCustomerEntity> {
|
|
111
|
+
}
|
|
112
|
+
export interface IBookingCustomer extends _BookingCustomer, IDeleteable, IUpdateable {
|
|
113
|
+
}
|
|
114
|
+
export declare const BookingCustomer: import("../graphqueryable.js").IGraphInvokableFactory<IBookingCustomer>;
|
|
115
|
+
/**
|
|
116
|
+
* Describes a collection of booking customer objects
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
export declare class _BookingCustomers extends _GraphQueryableCollection<IBookingCustomerEntity[]> {
|
|
120
|
+
/**
|
|
121
|
+
* Create a new booking customer as specified in the request body.
|
|
122
|
+
*
|
|
123
|
+
* @param bookingCustomer a JSON representation of a BookingCustomer object.
|
|
124
|
+
*/
|
|
125
|
+
add(bookingCustomer: IBookingCustomerEntity): Promise<IBookingCustomerAddResult>;
|
|
126
|
+
}
|
|
127
|
+
export interface IBookingCustomers extends _BookingCustomers, IGetById<IBookingCustomer> {
|
|
128
|
+
}
|
|
129
|
+
export declare const BookingCustomers: import("../graphqueryable.js").IGraphInvokableFactory<IBookingCustomers>;
|
|
130
|
+
/**
|
|
131
|
+
* Represents a booking service entity
|
|
132
|
+
*/
|
|
133
|
+
export declare class _BookingService extends _DirectoryObject<IBookingServiceEntity> {
|
|
134
|
+
}
|
|
135
|
+
export interface IBookingService extends _BookingService, IDeleteable, IUpdateable {
|
|
136
|
+
}
|
|
137
|
+
export declare const BookingService: import("../graphqueryable.js").IGraphInvokableFactory<IBookingService>;
|
|
138
|
+
/**
|
|
139
|
+
* Describes a collection of booking service objects
|
|
140
|
+
*
|
|
141
|
+
*/
|
|
142
|
+
export declare class _BookingServices extends _GraphQueryableCollection<IBookingServiceEntity[]> {
|
|
143
|
+
/**
|
|
144
|
+
* Create a new booking service as specified in the request body.
|
|
145
|
+
*
|
|
146
|
+
* @param bookingService a JSON representation of a BookingService object.
|
|
147
|
+
*/
|
|
148
|
+
add(bookingService: IBookingServiceEntity): Promise<IBookingServiceAddResult>;
|
|
149
|
+
}
|
|
150
|
+
export interface IBookingServices extends _BookingServices, IGetById<IBookingService> {
|
|
151
|
+
}
|
|
152
|
+
export declare const BookingServices: import("../graphqueryable.js").IGraphInvokableFactory<IBookingServices>;
|
|
153
|
+
/**
|
|
154
|
+
* Represents a booking staffmember entity
|
|
155
|
+
*/
|
|
156
|
+
export declare class _BookingStaffMember extends _DirectoryObject<IBookingStaffMemberEntity> {
|
|
157
|
+
}
|
|
158
|
+
export interface IBookingStaffMember extends _BookingStaffMember, IDeleteable, IUpdateable {
|
|
159
|
+
}
|
|
160
|
+
export declare const BookingStaffMember: import("../graphqueryable.js").IGraphInvokableFactory<IBookingStaffMember>;
|
|
161
|
+
/**
|
|
162
|
+
* Describes a collection of booking staffmember objects
|
|
163
|
+
*
|
|
164
|
+
*/
|
|
165
|
+
export declare class _BookingStaffMembers extends _GraphQueryableCollection<IBookingStaffMemberEntity[]> {
|
|
166
|
+
/**
|
|
167
|
+
* Create a new booking staffmember as specified in the request body.
|
|
168
|
+
*
|
|
169
|
+
* @param bookingStaffMember a JSON representation of a BookingStaffMember object.
|
|
170
|
+
*/
|
|
171
|
+
add(bookingStaffMember: IBookingStaffMemberEntity): Promise<IBookingStaffMemberAddResult>;
|
|
172
|
+
}
|
|
173
|
+
export interface IBookingStaffMembers extends _BookingStaffMembers, IGetById<IBookingStaffMember> {
|
|
174
|
+
}
|
|
175
|
+
export declare const BookingStaffMembers: import("../graphqueryable.js").IGraphInvokableFactory<IBookingStaffMembers>;
|
|
176
|
+
/**
|
|
177
|
+
* Represents a booking custom questions entity
|
|
178
|
+
*/
|
|
179
|
+
export declare class _BookingCustomQuestion extends _DirectoryObject<IBookingCustomQuestionEntity> {
|
|
180
|
+
}
|
|
181
|
+
export interface IBookingCustomQuestion extends _BookingCustomQuestion, IDeleteable, IUpdateable {
|
|
182
|
+
}
|
|
183
|
+
export declare const BookingCustomQuestion: import("../graphqueryable.js").IGraphInvokableFactory<IBookingCustomQuestion>;
|
|
184
|
+
/**
|
|
185
|
+
* Describes a collection of booking custom questions objects
|
|
186
|
+
*
|
|
187
|
+
*/
|
|
188
|
+
export declare class _BookingCustomQuestions extends _GraphQueryableCollection<IBookingCustomQuestionEntity[]> {
|
|
189
|
+
/**
|
|
190
|
+
* Create a new booking customquestions as specified in the request body.
|
|
191
|
+
*
|
|
192
|
+
* @param bookingCustomQuestion a JSON representation of a BookingCustomQuestion object.
|
|
193
|
+
*/
|
|
194
|
+
add(bookingCustomQuestion: IBookingCustomQuestionEntity): Promise<IBookingCustomQuestionAddResult>;
|
|
195
|
+
}
|
|
196
|
+
export interface IBookingCustomQuestions extends _BookingCustomQuestions, IGetById<IBookingCustomQuestion> {
|
|
197
|
+
}
|
|
198
|
+
export declare const BookingCustomQuestions: import("../graphqueryable.js").IGraphInvokableFactory<IBookingCustomQuestions>;
|
|
199
|
+
/**
|
|
200
|
+
* IBookingBusinessAddResult
|
|
201
|
+
*/
|
|
202
|
+
export interface IBookingBusinessAddResult {
|
|
203
|
+
bookingBusiness: IBookingBusinessEntity;
|
|
204
|
+
data: any;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* IBookingAppointmentAddResult
|
|
208
|
+
*/
|
|
209
|
+
export interface IBookingAppointmentAddResult {
|
|
210
|
+
bookingAppointment: IBookingAppointmentEntity;
|
|
211
|
+
data: any;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* IBookingCustomerAddResult
|
|
215
|
+
*/
|
|
216
|
+
export interface IBookingCustomerAddResult {
|
|
217
|
+
bookingCustomer: IBookingCustomerEntity;
|
|
218
|
+
data: any;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* IBookingServiceAddResult
|
|
222
|
+
*/
|
|
223
|
+
export interface IBookingServiceAddResult {
|
|
224
|
+
bookingService: IBookingServiceEntity;
|
|
225
|
+
data: any;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* IBookingStaffMemberAddResult
|
|
229
|
+
*/
|
|
230
|
+
export interface IBookingStaffMemberAddResult {
|
|
231
|
+
bookingStaffMember: IBookingStaffMemberEntity;
|
|
232
|
+
data: any;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* IBookingCustomQuestionAddResult
|
|
236
|
+
*/
|
|
237
|
+
export interface IBookingCustomQuestionAddResult {
|
|
238
|
+
bookingCustomQuestion: IBookingCustomQuestionEntity;
|
|
239
|
+
data: any;
|
|
240
|
+
}
|
|
241
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/graph/bookings/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,IAAI,sBAAsB,EACzC,kBAAkB,IAAI,yBAAyB,EAC/C,eAAe,IAAI,sBAAsB,EACzC,cAAc,IAAI,qBAAqB,EACvC,kBAAkB,IAAI,yBAAyB,EAC/C,eAAe,IAAI,sBAAsB,EACzC,qBAAqB,IAAI,4BAA4B,EACxD,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAyB,MAAM,sBA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CAAC,4BAA4B,EAAE,CAAC;IAClG;;;;OAIG;IACU,GAAG,CAAC,qBAAqB,EAAE,4BAA4B,GAAG,OAAO,CAAC,+BAA+B,CAAC;CAQlH;AAED,MAAM,WAAW,uBAAwB,SAAQ,uBAAuB,EAAE,QAAQ,CAAC,sBAAsB,CAAC;CAAI;AAC9G,eAAO,MAAM,sBAAsB,gFAA0E,CAAC;AAE9G;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,eAAe,EAAE,sBAAsB,CAAC;IACxC,IAAI,EAAE,GAAG,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC,kBAAkB,EAAE,yBAAyB,CAAC;IAC9C,IAAI,EAAE,GAAG,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,eAAe,EAAE,sBAAsB,CAAC;IACxC,IAAI,EAAE,GAAG,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,cAAc,EAAE,qBAAqB,CAAC;IACtC,IAAI,EAAE,GAAG,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC,kBAAkB,EAAE,yBAAyB,CAAC;IAC9C,IAAI,EAAE,GAAG,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C,qBAAqB,EAAE,4BAA4B,CAAC;IACpD,IAAI,EAAE,GAAG,CAAC;CACb"}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { _DirectoryObject } from "../directory-objects/types.js";
|
|
3
|
+
import { _GraphQueryableCollection, graphInvokableFactory } from "../graphqueryable.js";
|
|
4
|
+
import { defaultPath, deleteable, updateable, getById } from "../decorators.js";
|
|
5
|
+
import { graphPost } from "../operations.js";
|
|
6
|
+
import { body } from "@pnp/queryable";
|
|
7
|
+
import { calendarView } from "./funcs.js";
|
|
8
|
+
/**
|
|
9
|
+
* Describes a Booking Currency entity
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export class _BookingCurrency extends _DirectoryObject {
|
|
13
|
+
}
|
|
14
|
+
export const BookingCurrency = graphInvokableFactory(_BookingCurrency);
|
|
15
|
+
/**
|
|
16
|
+
* Describes a collection of Booking Currency objects
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
let _BookingCurrencies = class _BookingCurrencies extends _GraphQueryableCollection {
|
|
20
|
+
};
|
|
21
|
+
_BookingCurrencies = __decorate([
|
|
22
|
+
defaultPath("solutions/bookingCurrencies"),
|
|
23
|
+
getById(BookingCurrency)
|
|
24
|
+
], _BookingCurrencies);
|
|
25
|
+
export { _BookingCurrencies };
|
|
26
|
+
export const BookingCurrencies = graphInvokableFactory(_BookingCurrencies);
|
|
27
|
+
/**
|
|
28
|
+
* Represents a booking business entity
|
|
29
|
+
*/
|
|
30
|
+
let _BookingBusiness = class _BookingBusiness extends _DirectoryObject {
|
|
31
|
+
constructor() {
|
|
32
|
+
super(...arguments);
|
|
33
|
+
/**
|
|
34
|
+
* Get the calendar view for the booking business.
|
|
35
|
+
*/
|
|
36
|
+
this.calendarView = calendarView;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Make the scheduling page of a business available to external customers.
|
|
40
|
+
*/
|
|
41
|
+
publish() {
|
|
42
|
+
return graphPost(BookingBusiness(this, "publish"));
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Make the scheduling page of this business not available to external customers.
|
|
46
|
+
*/
|
|
47
|
+
unpublish() {
|
|
48
|
+
return graphPost(BookingBusiness(this, "unpublish"));
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get the appointments for the booking business.
|
|
52
|
+
*/
|
|
53
|
+
get appointments() {
|
|
54
|
+
return BookingAppointments(this);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get the customers for the booking business.
|
|
58
|
+
*/
|
|
59
|
+
get customers() {
|
|
60
|
+
return BookingCustomers(this);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Get the services for the booking business.
|
|
64
|
+
*/
|
|
65
|
+
get services() {
|
|
66
|
+
return BookingServices(this);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Get the staff members for the booking business.
|
|
70
|
+
*/
|
|
71
|
+
get staffMembers() {
|
|
72
|
+
return BookingStaffMembers(this);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get the staff members for the booking business.
|
|
76
|
+
*/
|
|
77
|
+
get customQuestions() {
|
|
78
|
+
return BookingCustomQuestions(this);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
_BookingBusiness = __decorate([
|
|
82
|
+
deleteable(),
|
|
83
|
+
updateable()
|
|
84
|
+
], _BookingBusiness);
|
|
85
|
+
export { _BookingBusiness };
|
|
86
|
+
export const BookingBusiness = graphInvokableFactory(_BookingBusiness);
|
|
87
|
+
/**
|
|
88
|
+
* Describes a collection of Booking Business objects
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
let _BookingBusinesses = class _BookingBusinesses extends _GraphQueryableCollection {
|
|
92
|
+
/**
|
|
93
|
+
* Create a new booking business as specified in the request body.
|
|
94
|
+
*
|
|
95
|
+
* @param name The name of the business, which interfaces with customers. This name appears at the top of the business scheduling page.
|
|
96
|
+
* @param additionalProperties A plain object collection of additional properties you want to set on the new group of type IBookingBusiness
|
|
97
|
+
*/
|
|
98
|
+
async add(name, additionalProperties = {}) {
|
|
99
|
+
const postBody = {
|
|
100
|
+
displayName: name,
|
|
101
|
+
...additionalProperties,
|
|
102
|
+
};
|
|
103
|
+
const data = await graphPost(this, body(postBody));
|
|
104
|
+
return {
|
|
105
|
+
data,
|
|
106
|
+
bookingBusiness: this.getById(data.id),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
_BookingBusinesses = __decorate([
|
|
111
|
+
defaultPath("solutions/bookingBusinesses"),
|
|
112
|
+
getById(BookingBusiness)
|
|
113
|
+
], _BookingBusinesses);
|
|
114
|
+
export { _BookingBusinesses };
|
|
115
|
+
export const BookingBusinesses = graphInvokableFactory(_BookingBusinesses);
|
|
116
|
+
/**
|
|
117
|
+
* Represents a booking appointment entity
|
|
118
|
+
*/
|
|
119
|
+
let _BookingApointment = class _BookingApointment extends _DirectoryObject {
|
|
120
|
+
/**
|
|
121
|
+
* Cancel the specified bookingAppointment in the specified bookingBusiness and send a message to the involved customer and staff members.
|
|
122
|
+
*/
|
|
123
|
+
cancel(cancellationMessage) {
|
|
124
|
+
const postBody = { cancellationMessage };
|
|
125
|
+
return graphPost(BookingAppointment(this, "cancel"), body(postBody));
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
_BookingApointment = __decorate([
|
|
129
|
+
deleteable(),
|
|
130
|
+
updateable()
|
|
131
|
+
], _BookingApointment);
|
|
132
|
+
export { _BookingApointment };
|
|
133
|
+
export const BookingAppointment = graphInvokableFactory(_BookingApointment);
|
|
134
|
+
/**
|
|
135
|
+
* Describes a collection of booking appointment objects
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
let _BookingAppointments = class _BookingAppointments extends _GraphQueryableCollection {
|
|
139
|
+
/**
|
|
140
|
+
* Create a new booking appointment as specified in the request body.
|
|
141
|
+
*
|
|
142
|
+
* @param bookingAppointment a JSON representation of a BookingAppointment object.
|
|
143
|
+
*/
|
|
144
|
+
async add(bookingAppointment) {
|
|
145
|
+
const data = await graphPost(this, body(bookingAppointment));
|
|
146
|
+
return {
|
|
147
|
+
data,
|
|
148
|
+
bookingAppointment: this.getById(data.id),
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
_BookingAppointments = __decorate([
|
|
153
|
+
defaultPath("appointments"),
|
|
154
|
+
getById(BookingAppointment)
|
|
155
|
+
], _BookingAppointments);
|
|
156
|
+
export { _BookingAppointments };
|
|
157
|
+
export const BookingAppointments = graphInvokableFactory(_BookingAppointments);
|
|
158
|
+
/**
|
|
159
|
+
* Represents a booking customer entity
|
|
160
|
+
*/
|
|
161
|
+
let _BookingCustomer = class _BookingCustomer extends _DirectoryObject {
|
|
162
|
+
};
|
|
163
|
+
_BookingCustomer = __decorate([
|
|
164
|
+
deleteable(),
|
|
165
|
+
updateable()
|
|
166
|
+
], _BookingCustomer);
|
|
167
|
+
export { _BookingCustomer };
|
|
168
|
+
export const BookingCustomer = graphInvokableFactory(_BookingCustomer);
|
|
169
|
+
/**
|
|
170
|
+
* Describes a collection of booking customer objects
|
|
171
|
+
*
|
|
172
|
+
*/
|
|
173
|
+
let _BookingCustomers = class _BookingCustomers extends _GraphQueryableCollection {
|
|
174
|
+
/**
|
|
175
|
+
* Create a new booking customer as specified in the request body.
|
|
176
|
+
*
|
|
177
|
+
* @param bookingCustomer a JSON representation of a BookingCustomer object.
|
|
178
|
+
*/
|
|
179
|
+
async add(bookingCustomer) {
|
|
180
|
+
const data = await graphPost(this, body(bookingCustomer));
|
|
181
|
+
return {
|
|
182
|
+
data,
|
|
183
|
+
bookingCustomer: this.getById(data.id),
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
_BookingCustomers = __decorate([
|
|
188
|
+
defaultPath("customers"),
|
|
189
|
+
getById(BookingCustomer)
|
|
190
|
+
], _BookingCustomers);
|
|
191
|
+
export { _BookingCustomers };
|
|
192
|
+
export const BookingCustomers = graphInvokableFactory(_BookingCustomers);
|
|
193
|
+
/**
|
|
194
|
+
* Represents a booking service entity
|
|
195
|
+
*/
|
|
196
|
+
let _BookingService = class _BookingService extends _DirectoryObject {
|
|
197
|
+
};
|
|
198
|
+
_BookingService = __decorate([
|
|
199
|
+
deleteable(),
|
|
200
|
+
updateable()
|
|
201
|
+
], _BookingService);
|
|
202
|
+
export { _BookingService };
|
|
203
|
+
export const BookingService = graphInvokableFactory(_BookingService);
|
|
204
|
+
/**
|
|
205
|
+
* Describes a collection of booking service objects
|
|
206
|
+
*
|
|
207
|
+
*/
|
|
208
|
+
let _BookingServices = class _BookingServices extends _GraphQueryableCollection {
|
|
209
|
+
/**
|
|
210
|
+
* Create a new booking service as specified in the request body.
|
|
211
|
+
*
|
|
212
|
+
* @param bookingService a JSON representation of a BookingService object.
|
|
213
|
+
*/
|
|
214
|
+
async add(bookingService) {
|
|
215
|
+
const data = await graphPost(this, body(bookingService));
|
|
216
|
+
return {
|
|
217
|
+
data,
|
|
218
|
+
bookingService: this.getById(data.id),
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
_BookingServices = __decorate([
|
|
223
|
+
defaultPath("services"),
|
|
224
|
+
getById(BookingService)
|
|
225
|
+
], _BookingServices);
|
|
226
|
+
export { _BookingServices };
|
|
227
|
+
export const BookingServices = graphInvokableFactory(_BookingServices);
|
|
228
|
+
/**
|
|
229
|
+
* Represents a booking staffmember entity
|
|
230
|
+
*/
|
|
231
|
+
let _BookingStaffMember = class _BookingStaffMember extends _DirectoryObject {
|
|
232
|
+
};
|
|
233
|
+
_BookingStaffMember = __decorate([
|
|
234
|
+
deleteable(),
|
|
235
|
+
updateable()
|
|
236
|
+
], _BookingStaffMember);
|
|
237
|
+
export { _BookingStaffMember };
|
|
238
|
+
export const BookingStaffMember = graphInvokableFactory(_BookingStaffMember);
|
|
239
|
+
/**
|
|
240
|
+
* Describes a collection of booking staffmember objects
|
|
241
|
+
*
|
|
242
|
+
*/
|
|
243
|
+
let _BookingStaffMembers = class _BookingStaffMembers extends _GraphQueryableCollection {
|
|
244
|
+
/**
|
|
245
|
+
* Create a new booking staffmember as specified in the request body.
|
|
246
|
+
*
|
|
247
|
+
* @param bookingStaffMember a JSON representation of a BookingStaffMember object.
|
|
248
|
+
*/
|
|
249
|
+
async add(bookingStaffMember) {
|
|
250
|
+
const data = await graphPost(this, body(bookingStaffMember));
|
|
251
|
+
return {
|
|
252
|
+
data,
|
|
253
|
+
bookingStaffMember: this.getById(data.id),
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
_BookingStaffMembers = __decorate([
|
|
258
|
+
defaultPath("staffMembers"),
|
|
259
|
+
getById(BookingStaffMember)
|
|
260
|
+
], _BookingStaffMembers);
|
|
261
|
+
export { _BookingStaffMembers };
|
|
262
|
+
export const BookingStaffMembers = graphInvokableFactory(_BookingStaffMembers);
|
|
263
|
+
/**
|
|
264
|
+
* Represents a booking custom questions entity
|
|
265
|
+
*/
|
|
266
|
+
let _BookingCustomQuestion = class _BookingCustomQuestion extends _DirectoryObject {
|
|
267
|
+
};
|
|
268
|
+
_BookingCustomQuestion = __decorate([
|
|
269
|
+
deleteable(),
|
|
270
|
+
updateable()
|
|
271
|
+
], _BookingCustomQuestion);
|
|
272
|
+
export { _BookingCustomQuestion };
|
|
273
|
+
export const BookingCustomQuestion = graphInvokableFactory(_BookingCustomQuestion);
|
|
274
|
+
/**
|
|
275
|
+
* Describes a collection of booking custom questions objects
|
|
276
|
+
*
|
|
277
|
+
*/
|
|
278
|
+
let _BookingCustomQuestions = class _BookingCustomQuestions extends _GraphQueryableCollection {
|
|
279
|
+
/**
|
|
280
|
+
* Create a new booking customquestions as specified in the request body.
|
|
281
|
+
*
|
|
282
|
+
* @param bookingCustomQuestion a JSON representation of a BookingCustomQuestion object.
|
|
283
|
+
*/
|
|
284
|
+
async add(bookingCustomQuestion) {
|
|
285
|
+
const data = await graphPost(this, body(bookingCustomQuestion));
|
|
286
|
+
return {
|
|
287
|
+
data,
|
|
288
|
+
bookingCustomQuestion: this.getById(data.id),
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
_BookingCustomQuestions = __decorate([
|
|
293
|
+
defaultPath("customquestions"),
|
|
294
|
+
getById(BookingCustomQuestion)
|
|
295
|
+
], _BookingCustomQuestions);
|
|
296
|
+
export { _BookingCustomQuestions };
|
|
297
|
+
export const BookingCustomQuestions = graphInvokableFactory(_BookingCustomQuestions);
|
|
298
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +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I,GAAG,MAAM,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC;QAEhE,OAAO;YACH,IAAI;YACJ,qBAAqB,EAAQ,IAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;SACtD,CAAC;IACN,CAAC;CACJ,CAAA;AAdY,uBAAuB;IAFnC,WAAW,CAAC,iBAAiB,CAAC;IAC9B,OAAO,CAAC,qBAAqB,CAAC;GAClB,uBAAuB,CAcnC;SAdY,uBAAuB;AAiBpC,MAAM,CAAC,MAAM,sBAAsB,GAAG,qBAAqB,CAA0B,uBAAuB,CAAC,CAAC"}
|
package/graphqueryable.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IInvokable, Queryable } from "@pnp/queryable";
|
|
2
|
+
import { IPagedResult } from "./behaviors/paged.js";
|
|
2
3
|
export declare type GraphInit = string | IGraphQueryable | [IGraphQueryable, string];
|
|
3
4
|
export interface IGraphQueryableConstructor<T> {
|
|
4
5
|
new (base: GraphInit, path?: string): T;
|
|
@@ -75,60 +76,30 @@ export declare class _GraphQueryableCollection<GetType = any[]> extends _GraphQu
|
|
|
75
76
|
* @param num Number of items to skip
|
|
76
77
|
*/
|
|
77
78
|
skip(num: number): this;
|
|
78
|
-
/**
|
|
79
|
-
* To request second and subsequent pages of Graph data
|
|
80
|
-
*/
|
|
81
|
-
skipToken(token: string): this;
|
|
82
|
-
/**
|
|
83
|
-
* Retrieves the total count of matching resources
|
|
84
|
-
*/
|
|
85
|
-
get count(): IGraphQueryableSearchableCollection;
|
|
86
|
-
}
|
|
87
|
-
export interface IGraphQueryableCollection<GetType = any[]> extends IInvokable, IGraphQueryable<GetType> {
|
|
88
|
-
/**
|
|
89
|
-
* Retrieves the total count of matching resources
|
|
90
|
-
*/
|
|
91
|
-
count: this;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @param filter The string representing the filter query
|
|
95
|
-
*/
|
|
96
|
-
filter(filter: string): this;
|
|
97
|
-
/**
|
|
98
|
-
* Orders based on the supplied fields
|
|
99
|
-
*
|
|
100
|
-
* @param orderby The name of the field on which to sort
|
|
101
|
-
* @param ascending If false DESC is appended, otherwise ASC (default)
|
|
102
|
-
*/
|
|
103
|
-
orderBy(orderBy: string, ascending?: boolean): this;
|
|
104
|
-
/**
|
|
105
|
-
* Limits the query to only return the specified number of items
|
|
106
|
-
*
|
|
107
|
-
* @param top The query row limit
|
|
108
|
-
*/
|
|
109
|
-
top(top: number): this;
|
|
110
79
|
/**
|
|
111
80
|
* Skips a set number of items in the return set
|
|
112
81
|
*
|
|
113
82
|
* @param num Number of items to skip
|
|
114
83
|
*/
|
|
115
|
-
|
|
84
|
+
search(query: string): this;
|
|
116
85
|
/**
|
|
117
86
|
* To request second and subsequent pages of Graph data
|
|
118
87
|
*/
|
|
119
88
|
skipToken(token: string): this;
|
|
120
|
-
}
|
|
121
|
-
export declare const GraphQueryableCollection: IGraphInvokableFactory<IGraphQueryableCollection<any[]>>;
|
|
122
|
-
export declare class _GraphQueryableSearchableCollection<GetType = any[]> extends _GraphQueryableCollection<GetType> {
|
|
123
89
|
/**
|
|
124
|
-
*
|
|
90
|
+
* Retrieves the total count of matching resources
|
|
125
91
|
*/
|
|
126
|
-
|
|
92
|
+
count(): Promise<number>;
|
|
93
|
+
/**
|
|
94
|
+
* Allows reading through a collection as pages of information whose size is determined by top or the api method's default
|
|
95
|
+
*
|
|
96
|
+
* @returns an object containing results, the ability to determine if there are more results, and request the next page of results
|
|
97
|
+
*/
|
|
98
|
+
paged(): Promise<IPagedResult>;
|
|
127
99
|
}
|
|
128
|
-
export interface
|
|
129
|
-
search(query: string): this;
|
|
100
|
+
export interface IGraphQueryableCollection<GetType = any[]> extends _GraphQueryableCollection<GetType> {
|
|
130
101
|
}
|
|
131
|
-
export declare const
|
|
102
|
+
export declare const GraphQueryableCollection: IGraphInvokableFactory<IGraphQueryableCollection<any[]>>;
|
|
132
103
|
/**
|
|
133
104
|
* Represents an instance that can be selected
|
|
134
105
|
*
|
package/graphqueryable.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphqueryable.d.ts","sourceRoot":"","sources":["../../../packages/graph/graphqueryable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"graphqueryable.d.ts","sourceRoot":"","sources":["../../../packages/graph/graphqueryable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAa,SAAS,EAAoB,MAAM,gBAAgB,CAAC;AAEpF,OAAO,EAAW,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE7D,oBAAY,SAAS,GAAG,MAAM,GAAG,eAAe,GAAG,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;AAE7E,MAAM,WAAW,0BAA0B,CAAC,CAAC;IACzC,KAAI,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;CAC1C;AAED,oBAAY,sBAAsB,CAAC,CAAC,SAAS,eAAe,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,CAAC,GAAG,UAAU,CAAC;AAEnH,eAAO,MAAM,qBAAqB,sCAAkC,GAAG,8BAEtE,CAAC;AAEF;;;GAGG;AACH,qBAAa,eAAe,CAAC,OAAO,GAAG,GAAG,CAAE,SAAQ,SAAS,CAAC,OAAO,CAAC;IAElE,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAE5B;;;;;;OAMG;gBACS,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM;IAkB1C;;;;OAIG;IACI,MAAM,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI;IAOzC;;;;OAIG;IACI,MAAM,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI;IAOzC;;;OAGG;IACI,aAAa,IAAI,MAAM;IAY9B;;;;OAIG;IACH,SAAS,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e,CAAC,OAAO,CAAC;CAAI;AACxG,eAAO,MAAM,sBAAsB,sDAA0E,CAAC"}
|
package/graphqueryable.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { isArray } from "@pnp/core";
|
|
2
|
-
import {
|
|
2
|
+
import { JSONParse, Queryable, queryableFactory } from "@pnp/queryable";
|
|
3
|
+
import { ConsistencyLevel } from "./behaviors/consistency-level.js";
|
|
4
|
+
import { AsPaged } from "./behaviors/paged.js";
|
|
3
5
|
export const graphInvokableFactory = (f) => {
|
|
4
6
|
return queryableFactory(f);
|
|
5
7
|
};
|
|
@@ -116,6 +118,16 @@ export class _GraphQueryableCollection extends _GraphQueryable {
|
|
|
116
118
|
this.query.set("$skip", num.toString());
|
|
117
119
|
return this;
|
|
118
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* Skips a set number of items in the return set
|
|
123
|
+
*
|
|
124
|
+
* @param num Number of items to skip
|
|
125
|
+
*/
|
|
126
|
+
search(query) {
|
|
127
|
+
this.using(ConsistencyLevel());
|
|
128
|
+
this.query.set("$search", query);
|
|
129
|
+
return this;
|
|
130
|
+
}
|
|
119
131
|
/**
|
|
120
132
|
* To request second and subsequent pages of Graph data
|
|
121
133
|
*/
|
|
@@ -126,24 +138,22 @@ export class _GraphQueryableCollection extends _GraphQueryable {
|
|
|
126
138
|
/**
|
|
127
139
|
* Retrieves the total count of matching resources
|
|
128
140
|
*/
|
|
129
|
-
|
|
130
|
-
const q =
|
|
141
|
+
async count() {
|
|
142
|
+
const q = GraphQueryableCollection(this).using(ConsistencyLevel(), JSONParse());
|
|
131
143
|
q.query.set("$count", "true");
|
|
132
|
-
|
|
144
|
+
const r = await q.top(1)();
|
|
145
|
+
return parseFloat(r["@odata.count"]);
|
|
133
146
|
}
|
|
134
|
-
}
|
|
135
|
-
export const GraphQueryableCollection = graphInvokableFactory(_GraphQueryableCollection);
|
|
136
|
-
export class _GraphQueryableSearchableCollection extends _GraphQueryableCollection {
|
|
137
147
|
/**
|
|
138
|
-
*
|
|
148
|
+
* Allows reading through a collection as pages of information whose size is determined by top or the api method's default
|
|
149
|
+
*
|
|
150
|
+
* @returns an object containing results, the ability to determine if there are more results, and request the next page of results
|
|
139
151
|
*/
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
q.query.set("$search", query);
|
|
143
|
-
return q;
|
|
152
|
+
paged() {
|
|
153
|
+
return AsPaged(this)();
|
|
144
154
|
}
|
|
145
155
|
}
|
|
146
|
-
export const
|
|
156
|
+
export const GraphQueryableCollection = graphInvokableFactory(_GraphQueryableCollection);
|
|
147
157
|
/**
|
|
148
158
|
* Represents an instance that can be selected
|
|
149
159
|
*
|
package/graphqueryable.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphqueryable.js","sourceRoot":"","sources":["../../../packages/graph/graphqueryable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAc,
|
|
1
|
+
{"version":3,"file":"graphqueryable.js","sourceRoot":"","sources":["../../../packages/graph/graphqueryable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAc,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,OAAO,EAAgB,MAAM,sBAAsB,CAAC;AAU7D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAA4B,CAAM,EAA6B,EAAE;IAClG,OAAO,gBAAgB,CAAI,CAAC,CAAC,CAAC;AAClC,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,OAAO,eAA+B,SAAQ,SAAkB;IAIlE;;;;;;OAMG;IACH,YAAY,IAAe,EAAE,IAAa;QAEtC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAElB,IAAI,OAAO,IAAI,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ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Event as IEventType, Group as IGroupType } from "@microsoft/microsoft-graph-types";
|
|
2
|
-
import {
|
|
2
|
+
import { _GraphQueryableCollection } from "../graphqueryable.js";
|
|
3
3
|
import { IDeleteable, IUpdateable, IGetById } from "../decorators.js";
|
|
4
4
|
import { _DirectoryObject } from "../directory-objects/types.js";
|
|
5
5
|
export declare enum GroupType {
|
|
@@ -54,10 +54,10 @@ export interface IGroup extends _Group, IDeleteable, IUpdateable {
|
|
|
54
54
|
}
|
|
55
55
|
export declare const Group: import("../graphqueryable.js").IGraphInvokableFactory<IGroup>;
|
|
56
56
|
/**
|
|
57
|
-
* Describes a collection of
|
|
57
|
+
* Describes a collection of Group objects
|
|
58
58
|
*
|
|
59
59
|
*/
|
|
60
|
-
export declare class _Groups extends
|
|
60
|
+
export declare class _Groups extends _GraphQueryableCollection<IGroupType[]> {
|
|
61
61
|
/**
|
|
62
62
|
* Create a new group as specified in the request body.
|
|
63
63
|
*
|
package/groups/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/graph/groups/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE5F,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/graph/groups/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE5F,OAAO,EAAE,yBAAyB,EAAyB,MAAM,sBAAsB,CAAC;AACxF,OAAO,EAA2B,WAAW,EAAc,WAAW,EAAW,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE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import { __decorate } from "tslib";
|
|
2
2
|
import { body } from "@pnp/queryable";
|
|
3
|
-
import {
|
|
3
|
+
import { _GraphQueryableCollection, graphInvokableFactory } from "../graphqueryable.js";
|
|
4
4
|
import { defaultPath, deleteable, updateable, getById } from "../decorators.js";
|
|
5
5
|
import { graphPost } from "../operations.js";
|
|
6
6
|
import { _DirectoryObject } from "../directory-objects/types.js";
|
|
@@ -75,10 +75,10 @@ _Group = __decorate([
|
|
|
75
75
|
export { _Group };
|
|
76
76
|
export const Group = graphInvokableFactory(_Group);
|
|
77
77
|
/**
|
|
78
|
-
* Describes a collection of
|
|
78
|
+
* Describes a collection of Group objects
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
let _Groups = class _Groups extends
|
|
81
|
+
let _Groups = class _Groups extends _GraphQueryableCollection {
|
|
82
82
|
/**
|
|
83
83
|
* Create a new group as specified in the request body.
|
|
84
84
|
*
|
package/groups/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/graph/groups/types.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/graph/groups/types.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,UAAU,EAAe,UAAU,EAAe,OAAO,EAAY,MAAM,kBAAkB,CAAC;AACpH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IACjB;;OAEG;IACH,mDAAS,CAAA;IACT;;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AGG;AAGH,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,yBAAuC;IAEhE;;;;;;;OAOG;IACI,KAAK,CAAC,GAAG,CAAC,IAAY,EAAE,YAAoB,EAAE,SAAoB,EAAE,uBAA4C,EAAE;QAErH,IAAI,QAAQ,GAAG;YACX,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,SAAS,KAAK,SAAS,CAAC,SAAS;YAC9C,YAAY,EAAE,YAAY;YAC1B,eAAe,EAAE,SAAS,KAAK,SAAS,CAAC,SAAS;YAClD,GAAG,oBAAoB;SAC1B,CAAC;QAEF,mCAAmC;QACnC,IAAI,SAAS,KAAK,SAAS,CAAC,QAAQ,EAAE;YAElC,QAAQ,GAAQ;gBACZ,GAAG,QAAQ;gBACX,UAAU,EAAE,SAAS,KAAK,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC;aACtF,CAAC;SACL;QAED,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAEnD,OAAO;YACH,IAAI;YACJ,KAAK,EAAQ,IAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;SACtC,CAAC;IACN,CAAC;CACJ,CAAA;AApCY,OAAO;IAFnB,WAAW,CAAC,QAAQ,CAAC;IACrB,OAAO,CAAC,KAAK,CAAC;GACF,OAAO,CAoCnB;SApCY,OAAO;AAsCpB,MAAM,CAAC,MAAM,MAAM,GAAG,qBAAqB,CAAU,OAAO,CAAC,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { graphfi as graphfi, GraphFI as GraphFI } from "./fi.js";
|
|
2
|
-
export { IGraphQueryableCollection, IGraphQueryableInstance,
|
|
2
|
+
export { IGraphQueryableCollection, IGraphQueryableInstance, GraphQueryable, IGraphQueryable, GraphQueryableCollection, GraphQueryableInstance, IGraphQueryableConstructor, } from "./graphqueryable.js";
|
|
3
3
|
export * from "./operations.js";
|
|
4
|
+
export * from "./behaviors/consistency-level.js";
|
|
4
5
|
export * from "./behaviors/defaults.js";
|
|
5
6
|
export * from "./behaviors/endpoint.js";
|
|
6
7
|
export * from "./behaviors/graphbrowser.js";
|
|
8
|
+
export * from "./behaviors/paged.js";
|
|
7
9
|
export * from "./behaviors/telemetry.js";
|
|
8
10
|
export * from "./behaviors/spfx.js";
|
|
9
11
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/graph/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,SAAS,CAAC;AAEjE,OAAO,EACH,yBAAyB,EACzB,uBAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/graph/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,SAAS,CAAC;AAEjE,OAAO,EACH,yBAAyB,EACzB,uBAAuB,EACvB,cAAc,EACd,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,GAC7B,MAAM,qBAAqB,CAAC;AAE7B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { graphfi as graphfi, GraphFI as GraphFI } from "./fi.js";
|
|
2
|
-
export { GraphQueryable, GraphQueryableCollection, GraphQueryableInstance,
|
|
2
|
+
export { GraphQueryable, GraphQueryableCollection, GraphQueryableInstance, } from "./graphqueryable.js";
|
|
3
3
|
export * from "./operations.js";
|
|
4
|
+
export * from "./behaviors/consistency-level.js";
|
|
4
5
|
export * from "./behaviors/defaults.js";
|
|
5
6
|
export * from "./behaviors/endpoint.js";
|
|
6
7
|
export * from "./behaviors/graphbrowser.js";
|
|
8
|
+
export * from "./behaviors/paged.js";
|
|
7
9
|
export * from "./behaviors/telemetry.js";
|
|
8
10
|
export * from "./behaviors/spfx.js";
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/graph/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,SAAS,CAAC;AAEjE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/graph/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,SAAS,CAAC;AAEjE,OAAO,EAGH,cAAc,EAEd,wBAAwB,EACxB,sBAAsB,GAEzB,MAAM,qBAAqB,CAAC;AAE7B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
|
package/messages/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Message as IMessageType, MailFolder as IMailFolderType, MailboxSettings as IMailboxSettingsType } from "@microsoft/microsoft-graph-types";
|
|
2
|
-
import {
|
|
2
|
+
import { _GraphQueryableInstance, _GraphQueryableCollection } from "../graphqueryable.js";
|
|
3
3
|
import { IGetById, IAddable, IUpdateable } from "../decorators.js";
|
|
4
4
|
/**
|
|
5
5
|
* Message
|
|
@@ -12,7 +12,7 @@ export declare const Message: import("../graphqueryable.js").IGraphInvokableFact
|
|
|
12
12
|
/**
|
|
13
13
|
* Messages
|
|
14
14
|
*/
|
|
15
|
-
export declare class _Messages extends
|
|
15
|
+
export declare class _Messages extends _GraphQueryableCollection<IMessageType[]> {
|
|
16
16
|
}
|
|
17
17
|
export interface IMessages extends _Messages, IGetById<IMessage>, IAddable<IMessageType> {
|
|
18
18
|
}
|
package/messages/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/graph/messages/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,UAAU,IAAI,eAAe,EAAE,eAAe,IAAI,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACnJ,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/graph/messages/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,UAAU,IAAI,eAAe,EAAE,eAAe,IAAI,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACnJ,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAyB,MAAM,sBAAsB,CAAC;AACjH,OAAO,EAAiC,QAAQ,EAAE,QAAQ,EAAc,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE9G;;GAEG;AACH,qBAAa,QAAS,SAAQ,uBAAuB,CAAC,YAAY,CAAC;CAAI;AACvE,MAAM,WAAW,QAAS,SAAQ,QAAQ;CAAI;AAC9C,eAAO,MAAM,OAAO,iEAA4C,CAAC;AAEjE;;GAEG;AACH,qBAGa,SAAU,SAAQ,yBAAyB,CAAC,YAAY,EAAE,CAAC;CAAI;AAC5E,MAAM,WAAW,SAAU,SAAQ,SAAS,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;CAAI;AAC5F,eAAO,MAAM,QAAQ,kEAA8C,CAAC;AAEpE;;GAEG;AACH,qBAAa,WAAY,SAAQ,uBAAuB,CAAC,eAAe,CAAC;CAAI;AAC7E,MAAM,WAAW,WAAY,SAAQ,WAAW;CAAI;AACpD,eAAO,MAAM,UAAU,oEAAkD,CAAC;AAE1E;;GAEG;AACH,qBAGa,YAAa,SAAQ,yBAAyB,CAAC,eAAe,EAAE,CAAC;CAAI;AAClF,MAAM,WAAW,YAAa,SAAQ,YAAY,EAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC;CAAI;AACxG,eAAO,MAAM,WAAW,qEAAoD,CAAC;AAE7E;;GAEG;AACH,qBAEa,gBAAiB,SAAQ,uBAAuB,CAAC,oBAAoB,CAAC;CAAI;AACvF,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB,EAAE,WAAW,CAAC,oBAAoB,CAAC;CAAI;AACjG,eAAO,MAAM,eAAe,yEAA4D,CAAC"}
|
package/messages/types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { _GraphQueryableInstance, _GraphQueryableCollection, graphInvokableFactory } from "../graphqueryable.js";
|
|
3
3
|
import { defaultPath, getById, addable, updateable } from "../decorators.js";
|
|
4
4
|
/**
|
|
5
5
|
* Message
|
|
@@ -10,7 +10,7 @@ export const Message = graphInvokableFactory(_Message);
|
|
|
10
10
|
/**
|
|
11
11
|
* Messages
|
|
12
12
|
*/
|
|
13
|
-
let _Messages = class _Messages extends
|
|
13
|
+
let _Messages = class _Messages extends _GraphQueryableCollection {
|
|
14
14
|
};
|
|
15
15
|
_Messages = __decorate([
|
|
16
16
|
defaultPath("messages"),
|
package/messages/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/graph/messages/types.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/graph/messages/types.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACjH,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAsB,UAAU,EAAe,MAAM,kBAAkB,CAAC;AAE9G;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,uBAAqC;CAAI;AAEvE,MAAM,CAAC,MAAM,OAAO,GAAG,qBAAqB,CAAW,QAAQ,CAAC,CAAC;AAEjE;;GAEG;AAIH,IAAa,SAAS,GAAtB,MAAa,SAAU,SAAQ,yBAAyC;CAAI,CAAA;AAA/D,SAAS;IAHrB,WAAW,CAAC,UAAU,CAAC;IACvB,OAAO,CAAC,OAAO,CAAC;IAChB,OAAO,EAAE;GACG,SAAS,CAAsD;SAA/D,SAAS;AAEtB,MAAM,CAAC,MAAM,QAAQ,GAAG,qBAAqB,CAAY,SAAS,CAAC,CAAC;AAEpE;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,uBAAwC;CAAI;AAE7E,MAAM,CAAC,MAAM,UAAU,GAAG,qBAAqB,CAAc,WAAW,CAAC,CAAC;AAE1E;;GAEG;AAIH,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,yBAA4C;CAAI,CAAA;AAArE,YAAY;IAHxB,WAAW,CAAC,aAAa,CAAC;IAC1B,OAAO,CAAC,UAAU,CAAC;IACnB,OAAO,EAAE;GACG,YAAY,CAAyD;SAArE,YAAY;AAEzB,MAAM,CAAC,MAAM,WAAW,GAAG,qBAAqB,CAAe,YAAY,CAAC,CAAC;AAE7E;;GAEG;AAGH,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,uBAA6C;CAAI,CAAA;AAA1E,gBAAgB;IAF5B,WAAW,CAAC,iBAAiB,CAAC;IAC9B,UAAU,EAAE;GACA,gBAAgB,CAA0D;SAA1E,gBAAgB;AAE7B,MAAM,CAAC,MAAM,eAAe,GAAG,qBAAqB,CAAmB,gBAAgB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/graph",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "pnp - provides a fluent interface to query the Microsoft Graph",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"postinstall": "node ./post-install.cjs"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@microsoft/microsoft-graph-types": "2.
|
|
12
|
-
"tslib": "2.
|
|
13
|
-
"@pnp/core": "3.
|
|
14
|
-
"@pnp/queryable": "3.
|
|
11
|
+
"@microsoft/microsoft-graph-types": "2.20.0",
|
|
12
|
+
"tslib": "2.4.0",
|
|
13
|
+
"@pnp/core": "3.4.0",
|
|
14
|
+
"@pnp/queryable": "3.4.0"
|
|
15
15
|
},
|
|
16
16
|
"funding": {
|
|
17
17
|
"type": "individual",
|
package/users/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _GraphQueryableCollection } from "../graphqueryable.js";
|
|
2
2
|
import { User as IUserType, Person as IPersonType } from "@microsoft/microsoft-graph-types";
|
|
3
3
|
import { _DirectoryObject, IDirectoryObjects } from "../directory-objects/types.js";
|
|
4
4
|
import { IUpdateable, IDeleteable, IGetById } from "../decorators.js";
|
|
@@ -27,12 +27,12 @@ export declare class _User extends _DirectoryObject<IUserType> {
|
|
|
27
27
|
export interface IUser extends _User, IUpdateable<IUserType>, IDeleteable {
|
|
28
28
|
}
|
|
29
29
|
export declare const User: import("../graphqueryable.js").IGraphInvokableFactory<IUser>;
|
|
30
|
-
export declare class _Users extends
|
|
30
|
+
export declare class _Users extends _GraphQueryableCollection<IUserType[]> {
|
|
31
31
|
}
|
|
32
32
|
export interface IUsers extends _Users, IGetById<IUser> {
|
|
33
33
|
}
|
|
34
34
|
export declare const Users: import("../graphqueryable.js").IGraphInvokableFactory<IUsers>;
|
|
35
|
-
export declare class _People extends
|
|
35
|
+
export declare class _People extends _GraphQueryableCollection<IPersonType[]> {
|
|
36
36
|
}
|
|
37
37
|
export interface IPeople extends _People {
|
|
38
38
|
}
|
package/users/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/graph/users/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/graph/users/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAyB,MAAM,sBAAsB,CAAC;AACxF,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAoB,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACtG,OAAO,EAAuC,WAAW,EAAE,WAAW,EAAW,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEpH,qBAEa,KAAM,SAAQ,gBAAgB,CAAC,SAAS,CAAC;IAClD;;MAEE;IACF,IAAW,QAAQ,IAAI,iBAAiB,CAEvC;IAED;;MAEE;IACF,IAAW,kBAAkB,IAAI,iBAAiB,CAEjD;IAED;;OAEG;IACH,IAAW,MAAM,IAAI,OAAO,CAE3B;IAED;;MAEE;IACF,IAAW,aAAa,IAAI,OAAO,CAElC;IAED;;MAEE;IACF,IAAW,OAAO,IAAI,KAAK,CAE1B;CACJ;AACD,MAAM,WAAW,KAAM,SAAQ,KAAK,EAAE,WAAW,CAAC,SAAS,CAAC,EAAE,WAAW;CAAI;AAC7E,eAAO,MAAM,IAAI,8DAAsC,CAAC;AAExD,qBAEa,MAAO,SAAQ,yBAAyB,CAAC,SAAS,EAAE,CAAC;CAAI;AACtE,MAAM,WAAW,MAAO,SAAQ,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC;CAAI;AAC3D,eAAO,MAAM,KAAK,+DAAwC,CAAC;AAE3D,qBACa,OAAQ,SAAQ,yBAAyB,CAAC,WAAW,EAAE,CAAC;CAAI;AACzE,MAAM,WAAW,OAAQ,SAAQ,OAAO;CAAI;AAC5C,eAAO,MAAM,MAAM,gEAA0C,CAAC"}
|
package/users/types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { _GraphQueryableCollection, graphInvokableFactory } from "../graphqueryable.js";
|
|
3
3
|
import { _DirectoryObject, DirectoryObjects } from "../directory-objects/types.js";
|
|
4
4
|
import { defaultPath, updateable, deleteable, getById } from "../decorators.js";
|
|
5
5
|
let _User = class _User extends _DirectoryObject {
|
|
@@ -40,7 +40,7 @@ _User = __decorate([
|
|
|
40
40
|
], _User);
|
|
41
41
|
export { _User };
|
|
42
42
|
export const User = graphInvokableFactory(_User);
|
|
43
|
-
let _Users = class _Users extends
|
|
43
|
+
let _Users = class _Users extends _GraphQueryableCollection {
|
|
44
44
|
};
|
|
45
45
|
_Users = __decorate([
|
|
46
46
|
defaultPath("users"),
|
|
@@ -48,7 +48,7 @@ _Users = __decorate([
|
|
|
48
48
|
], _Users);
|
|
49
49
|
export { _Users };
|
|
50
50
|
export const Users = graphInvokableFactory(_Users);
|
|
51
|
-
let _People = class _People extends
|
|
51
|
+
let _People = class _People extends _GraphQueryableCollection {
|
|
52
52
|
};
|
|
53
53
|
_People = __decorate([
|
|
54
54
|
defaultPath("people")
|
package/users/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/graph/users/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/graph/users/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAExF,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAqB,MAAM,+BAA+B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAA4B,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAIpH,IAAa,KAAK,GAAlB,MAAa,KAAM,SAAQ,gBAA2B;IAClD;;MAEE;IACF,IAAW,QAAQ;QACf,OAAO,gBAAgB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC9C,CAAC;IAED;;MAEE;IACF,IAAW,kBAAkB;QACzB,OAAO,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,IAAW,MAAM;QACb,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED;;MAEE;IACF,IAAW,aAAa;QACpB,OAAO,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IACzC,CAAC;IAED;;MAEE;IACF,IAAW,OAAO;QACd,OAAO,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACjC,CAAC;CACJ,CAAA;AAnCY,KAAK;IAFjB,UAAU,EAAE;IACZ,UAAU,EAAE;GACA,KAAK,CAmCjB;SAnCY,KAAK;AAqClB,MAAM,CAAC,MAAM,IAAI,GAAG,qBAAqB,CAAQ,KAAK,CAAC,CAAC;AAIxD,IAAa,MAAM,GAAnB,MAAa,MAAO,SAAQ,yBAAsC;CAAI,CAAA;AAAzD,MAAM;IAFlB,WAAW,CAAC,OAAO,CAAC;IACpB,OAAO,CAAC,IAAI,CAAC;GACD,MAAM,CAAmD;SAAzD,MAAM;A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