@pnp/graph 3.3.2 → 3.4.1-v3nightly.20220614

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/behaviors/consistency-level.d.ts +4 -0
  2. package/behaviors/consistency-level.d.ts.map +1 -0
  3. package/behaviors/consistency-level.js +10 -0
  4. package/behaviors/consistency-level.js.map +1 -0
  5. package/behaviors/paged.d.ts +21 -0
  6. package/behaviors/paged.d.ts.map +1 -0
  7. package/behaviors/paged.js +44 -0
  8. package/behaviors/paged.js.map +1 -0
  9. package/behaviors/telemetry.js +1 -1
  10. package/bookings/funcs.d.ts +11 -0
  11. package/bookings/funcs.d.ts.map +1 -0
  12. package/bookings/funcs.js +15 -0
  13. package/bookings/funcs.js.map +1 -0
  14. package/bookings/index.d.ts +9 -0
  15. package/bookings/index.d.ts.map +1 -0
  16. package/bookings/index.js +18 -0
  17. package/bookings/index.js.map +1 -0
  18. package/bookings/types.d.ts +241 -0
  19. package/bookings/types.d.ts.map +1 -0
  20. package/bookings/types.js +298 -0
  21. package/bookings/types.js.map +1 -0
  22. package/graphqueryable.d.ts +12 -41
  23. package/graphqueryable.d.ts.map +1 -1
  24. package/graphqueryable.js +29 -16
  25. package/graphqueryable.js.map +1 -1
  26. package/groups/types.d.ts +3 -3
  27. package/groups/types.d.ts.map +1 -1
  28. package/groups/types.js +3 -3
  29. package/groups/types.js.map +1 -1
  30. package/index.d.ts +3 -1
  31. package/index.d.ts.map +1 -1
  32. package/index.js +3 -1
  33. package/index.js.map +1 -1
  34. package/messages/types.d.ts +2 -2
  35. package/messages/types.d.ts.map +1 -1
  36. package/messages/types.js +2 -2
  37. package/messages/types.js.map +1 -1
  38. package/package.json +34 -34
  39. package/users/types.d.ts +3 -3
  40. package/users/types.d.ts.map +1 -1
  41. package/users/types.js +3 -3
  42. package/users/types.js.map +1 -1
@@ -0,0 +1,4 @@
1
+ import { TimelinePipe } from "@pnp/core";
2
+ import { Queryable } from "@pnp/queryable";
3
+ export declare function ConsistencyLevel(level?: string): TimelinePipe<Queryable>;
4
+ //# sourceMappingURL=consistency-level.d.ts.map
@@ -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,MAAM,UAAU,OAAO,CAAC,GAA8B;IAElD,MAAM,CAAC,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;IAEvD,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;IAE1E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,KAAK,GAAG,GA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IACpB,CAAC,CAAC;AACN,CAAC"}
@@ -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.3.2" };
4
+ init.headers = { ...init.headers, SdkVersion: "PnPCoreJS/3.4.1" };
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,sBAAsB,CAAC;AACxF,OAAO,EAA2B,WAAW,EAAc,WAAW,EAAW,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGpH,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,gBAAgB,CAAC,sBAAsB,CAAC;CAAI;AAClF,MAAM,WA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