@microsoft/msgraph-sdk-groups 1.0.0-preview.39 → 1.0.0-preview.40

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 (58) hide show
  1. package/groups/index.d.ts +3 -3
  2. package/groups/item/calendar/allowedCalendarSharingRolesWithUser/index.js +1 -1
  3. package/groups/item/calendar/allowedCalendarSharingRolesWithUser/index.js.map +1 -1
  4. package/groups/item/conversations/index.d.ts +3 -3
  5. package/groups/item/conversations/item/index.d.ts +4 -4
  6. package/groups/item/conversations/item/threads/item/reply/index.d.ts +3 -3
  7. package/groups/item/team/schedule/dayNotes/count/index.d.ts +41 -0
  8. package/groups/item/team/schedule/dayNotes/count/index.d.ts.map +1 -0
  9. package/groups/item/team/schedule/dayNotes/count/index.js +34 -0
  10. package/groups/item/team/schedule/dayNotes/count/index.js.map +1 -0
  11. package/groups/item/team/schedule/dayNotes/index.d.ts +97 -0
  12. package/groups/item/team/schedule/dayNotes/index.d.ts.map +1 -0
  13. package/groups/item/team/schedule/dayNotes/index.js +70 -0
  14. package/groups/item/team/schedule/dayNotes/index.js.map +1 -0
  15. package/groups/item/team/schedule/dayNotes/item/index.d.ts +69 -0
  16. package/groups/item/team/schedule/dayNotes/item/index.d.ts.map +1 -0
  17. package/groups/item/team/schedule/dayNotes/item/index.js +56 -0
  18. package/groups/item/team/schedule/dayNotes/item/index.js.map +1 -0
  19. package/groups/item/team/schedule/index.d.ts +10 -0
  20. package/groups/item/team/schedule/index.d.ts.map +1 -1
  21. package/groups/item/team/schedule/index.js +12 -0
  22. package/groups/item/team/schedule/index.js.map +1 -1
  23. package/groups/item/team/schedule/timeCards/clockIn/index.d.ts +66 -0
  24. package/groups/item/team/schedule/timeCards/clockIn/index.d.ts.map +1 -0
  25. package/groups/item/team/schedule/timeCards/clockIn/index.js +64 -0
  26. package/groups/item/team/schedule/timeCards/clockIn/index.js.map +1 -0
  27. package/groups/item/team/schedule/timeCards/count/index.d.ts +41 -0
  28. package/groups/item/team/schedule/timeCards/count/index.d.ts.map +1 -0
  29. package/groups/item/team/schedule/timeCards/count/index.js +34 -0
  30. package/groups/item/team/schedule/timeCards/count/index.js.map +1 -0
  31. package/groups/item/team/schedule/timeCards/index.d.ts +102 -0
  32. package/groups/item/team/schedule/timeCards/index.d.ts.map +1 -0
  33. package/groups/item/team/schedule/timeCards/index.js +76 -0
  34. package/groups/item/team/schedule/timeCards/index.js.map +1 -0
  35. package/groups/item/team/schedule/timeCards/item/clockOut/index.d.ts +65 -0
  36. package/groups/item/team/schedule/timeCards/item/clockOut/index.d.ts.map +1 -0
  37. package/groups/item/team/schedule/timeCards/item/clockOut/index.js +64 -0
  38. package/groups/item/team/schedule/timeCards/item/clockOut/index.js.map +1 -0
  39. package/groups/item/team/schedule/timeCards/item/confirm/index.d.ts +30 -0
  40. package/groups/item/team/schedule/timeCards/item/confirm/index.d.ts.map +1 -0
  41. package/groups/item/team/schedule/timeCards/item/confirm/index.js +28 -0
  42. package/groups/item/team/schedule/timeCards/item/confirm/index.js.map +1 -0
  43. package/groups/item/team/schedule/timeCards/item/endBreak/index.d.ts +65 -0
  44. package/groups/item/team/schedule/timeCards/item/endBreak/index.d.ts.map +1 -0
  45. package/groups/item/team/schedule/timeCards/item/endBreak/index.js +64 -0
  46. package/groups/item/team/schedule/timeCards/item/endBreak/index.js.map +1 -0
  47. package/groups/item/team/schedule/timeCards/item/index.d.ts +93 -0
  48. package/groups/item/team/schedule/timeCards/item/index.d.ts.map +1 -0
  49. package/groups/item/team/schedule/timeCards/item/index.js +81 -0
  50. package/groups/item/team/schedule/timeCards/item/index.js.map +1 -0
  51. package/groups/item/team/schedule/timeCards/item/startBreak/index.d.ts +65 -0
  52. package/groups/item/team/schedule/timeCards/item/startBreak/index.d.ts.map +1 -0
  53. package/groups/item/team/schedule/timeCards/item/startBreak/index.js +64 -0
  54. package/groups/item/team/schedule/timeCards/item/startBreak/index.js.map +1 -0
  55. package/groups/item/threads/item/index.d.ts +4 -4
  56. package/groups/item/threads/item/reply/index.d.ts +3 -3
  57. package/package.json +2 -2
  58. package/tsconfig.tsbuildinfo +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,oCAAoC,EAAE,iBAAiB,EAAiB,MAAM,wCAAwC,CAAC;AAChI,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAC7H,aAAa;AACb,OAAO,EAAE,kDAAkD,EAAE,gDAAgD,EAAyC,MAAM,+BAA+B,CAAC;AAC5L,aAAa;AACb,OAAO,EAAE,uDAAuD,EAAE,qDAAqD,EAA8C,MAAM,oCAAoC,CAAC;AAChN,aAAa;AACb,OAAO,EAAE,0CAA0C,EAAE,wCAAwC,EAAiC,MAAM,uBAAuB,CAAC;AAC5J,aAAa;AACb,OAAO,EAAE,gDAAgD,EAAE,8CAA8C,EAAuC,MAAM,6BAA6B,CAAC;AACpL,aAAa;AACb,OAAO,EAAE,mCAAmC,EAA4B,MAAM,kBAAkB,CAAC;AACjG,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAE,oCAAoC,EAA6B,MAAM,mBAAmB,CAAC;AAC5I,aAAa;AACb,OAAO,EAAE,wDAAwD,EAAE,sDAAsD,EAA+C,MAAM,qCAAqC,CAAC;AACpN,aAAa;AACb,OAAO,EAAE,8CAA8C,EAAE,4CAA4C,EAAqC,MAAM,2BAA2B,CAAC;AAC5K,aAAa;AACb,OAAO,EAAE,+CAA+C,EAAE,6CAA6C,EAAsC,MAAM,4BAA4B,CAAC;AAChL,aAAa;AACb,OAAO,EAAE,wCAAwC,EAAE,sCAAsC,EAA+B,MAAM,qBAAqB,CAAC;AAsGpJ;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,oEAAoE,CAAC;AACtH;;GAEG;AACH,MAAM,8C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kB,EAAE,wDAAwD;KAC/E;IACD,SAAS,EAAE;QACP,gBAAgB,EAAE,uCAAuC;QACzD,kBAAkB,EAAE,yCAAyC;KAChE;IACD,cAAc,EAAE;QACZ,gBAAgB,EAAE,4CAA4C;QAC9D,kBAAkB,EAAE,8CAA8C;KACrE;IACD,eAAe,EAAE;QACb,gBAAgB,EAAE,6CAA6C;QAC/D,kBAAkB,EAAE,+CAA+C;KACtE;IACD,QAAQ,EAAE;QACN,gBAAgB,EAAE,sCAAsC;QACxD,kBAAkB,EAAE,wCAAwC;KAC/D;CACJ,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAqB;IACpE,MAAM,EAAE;QACJ,WAAW,EAAE,iCAAiC;QAC9C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,uBAAuB;KAC7C;IACD,GAAG,EAAE;QACD,WAAW,EAAE,iCAAiC;QAC9C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,oCAAoC;QAC1D,qBAAqB,EAAE,8CAA8C;KACxE;IACD,GAAG,EAAE;QACD,WAAW,EAAE,iCAAiC;QAC9C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,oCAAoC;QAC1D,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,iBAAiB;QACxC,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,66 @@
1
+ import { type ItemBody, type TimeCard } from '@microsoft/msgraph-sdk/models/index.js';
2
+ import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
3
+ export interface ClockInPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
4
+ /**
5
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
6
+ */
7
+ additionalData?: Record<string, unknown>;
8
+ /**
9
+ * Stores model information.
10
+ */
11
+ backingStoreEnabled?: boolean | null;
12
+ /**
13
+ * The isAtApprovedLocation property
14
+ */
15
+ isAtApprovedLocation?: boolean | null;
16
+ /**
17
+ * The notes property
18
+ */
19
+ notes?: ItemBody | null;
20
+ }
21
+ /**
22
+ * Provides operations to call the clockIn method.
23
+ */
24
+ export interface ClockInRequestBuilder extends BaseRequestBuilder<ClockInRequestBuilder> {
25
+ /**
26
+ * Clock in to start a timeCard.
27
+ * @param body The request body
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns {Promise<TimeCard>}
30
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
31
+ * @see {@link https://learn.microsoft.com/graph/api/timecard-clockin?view=graph-rest-1.0|Find more info here}
32
+ */
33
+ post(body: ClockInPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TimeCard | undefined>;
34
+ /**
35
+ * Clock in to start a timeCard.
36
+ * @param body The request body
37
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
38
+ * @returns {RequestInformation}
39
+ */
40
+ toPostRequestInformation(body: ClockInPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
41
+ }
42
+ /**
43
+ * Creates a new instance of the appropriate class based on discriminator value
44
+ * @param parseNode The parse node to use to read the discriminator value and create the object
45
+ * @returns {ClockInPostRequestBody}
46
+ */
47
+ export declare function createClockInPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
48
+ /**
49
+ * The deserialization information for the current model
50
+ * @returns {Record<string, (node: ParseNode) => void>}
51
+ */
52
+ export declare function deserializeIntoClockInPostRequestBody(clockInPostRequestBody?: Partial<ClockInPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
53
+ /**
54
+ * Serializes information the current object
55
+ * @param writer Serialization writer to use to serialize this model
56
+ */
57
+ export declare function serializeClockInPostRequestBody(writer: SerializationWriter, clockInPostRequestBody?: Partial<ClockInPostRequestBody> | undefined | null): void;
58
+ /**
59
+ * Uri template for the request builder.
60
+ */
61
+ export declare const ClockInRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/clockIn";
62
+ /**
63
+ * Metadata for all the requests in the request builder.
64
+ */
65
+ export declare const ClockInRequestBuilderRequestsMetadata: RequestsMetadata;
66
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoH,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAIxM,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAqB,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAElS,MAAM,WAAW,sBAAuB,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACvF;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACrC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;CAC3B;AACD;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;IACpF;;;;;;;OAOG;IACF,IAAI,CAAC,IAAI,EAAE,sBAAsB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;IACrI;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,sBAAsB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;;;GAIG;AAEH,wBAAgB,kDAAkD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAE1K;AACD;;;GAGG;AAEH,wBAAgB,qCAAqC,CAAC,sBAAsB,GAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,SAAc,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAM1K;AACD;;;GAGG;AAEH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,mBAAmB,EAAE,sBAAsB,GAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,SAAS,GAAG,IAAS,GAAI,IAAI,CAMnK;AACD;;GAEG;AACH,eAAO,MAAM,gCAAgC,mEAAmE,CAAC;AACjH;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAanD,CAAC"}
@@ -0,0 +1,64 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createItemBodyFromDiscriminatorValue, createTimeCardFromDiscriminatorValue, serializeItemBody } from '@microsoft/msgraph-sdk/models/index.js';
6
+ // @ts-ignore
7
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8
+ /**
9
+ * Creates a new instance of the appropriate class based on discriminator value
10
+ * @param parseNode The parse node to use to read the discriminator value and create the object
11
+ * @returns {ClockInPostRequestBody}
12
+ */
13
+ // @ts-ignore
14
+ export function createClockInPostRequestBodyFromDiscriminatorValue(parseNode) {
15
+ return deserializeIntoClockInPostRequestBody;
16
+ }
17
+ /**
18
+ * The deserialization information for the current model
19
+ * @returns {Record<string, (node: ParseNode) => void>}
20
+ */
21
+ // @ts-ignore
22
+ export function deserializeIntoClockInPostRequestBody(clockInPostRequestBody = {}) {
23
+ return {
24
+ "backingStoreEnabled": n => { clockInPostRequestBody.backingStoreEnabled = true; },
25
+ "isAtApprovedLocation": n => { clockInPostRequestBody.isAtApprovedLocation = n.getBooleanValue(); },
26
+ "notes": n => { clockInPostRequestBody.notes = n.getObjectValue(createItemBodyFromDiscriminatorValue); },
27
+ };
28
+ }
29
+ /**
30
+ * Serializes information the current object
31
+ * @param writer Serialization writer to use to serialize this model
32
+ */
33
+ // @ts-ignore
34
+ export function serializeClockInPostRequestBody(writer, clockInPostRequestBody = {}) {
35
+ if (clockInPostRequestBody) {
36
+ writer.writeBooleanValue("isAtApprovedLocation", clockInPostRequestBody.isAtApprovedLocation);
37
+ writer.writeObjectValue("notes", clockInPostRequestBody.notes, serializeItemBody);
38
+ writer.writeAdditionalData(clockInPostRequestBody.additionalData);
39
+ }
40
+ }
41
+ /**
42
+ * Uri template for the request builder.
43
+ */
44
+ export const ClockInRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/clockIn";
45
+ /**
46
+ * Metadata for all the requests in the request builder.
47
+ */
48
+ export const ClockInRequestBuilderRequestsMetadata = {
49
+ post: {
50
+ uriTemplate: ClockInRequestBuilderUriTemplate,
51
+ responseBodyContentType: "application/json",
52
+ errorMappings: {
53
+ XXX: createODataErrorFromDiscriminatorValue,
54
+ },
55
+ adapterMethodName: "send",
56
+ responseBodyFactory: createTimeCardFromDiscriminatorValue,
57
+ requestBodyContentType: "application/json",
58
+ requestBodySerializer: serializeClockInPostRequestBody,
59
+ requestInformationContentSetMethod: "setContentFromParsable",
60
+ },
61
+ };
62
+ /* tslint:enable */
63
+ /* eslint-enable */
64
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,oCAAoC,EAAE,oCAAoC,EAAE,iBAAiB,EAAmD,MAAM,wCAAwC,CAAC;AACxM,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AA2C7H;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,kDAAkD,CAAC,SAAgC;IAC/F,OAAO,qCAAqC,CAAC;AACjD,CAAC;AACD;;;GAGG;AACH,aAAa;AACb,MAAM,UAAU,qCAAqC,CAAC,yBAAsE,EAAE;IAC1H,OAAO;QACH,qBAAqB,EAAE,CAAC,CAAC,EAAE,GAAG,sBAAsB,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC,CAAC;QAClF,sBAAsB,EAAE,CAAC,CAAC,EAAE,GAAG,sBAAsB,CAAC,oBAAoB,GAAG,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC;QACnG,OAAO,EAAE,CAAC,CAAC,EAAE,GAAG,sBAAsB,CAAC,KAAK,GAAG,CAAC,CAAC,cAAc,CAAW,oCAAoC,CAAC,CAAC,CAAC,CAAC;KACrH,CAAA;AACL,CAAC;AACD;;;GAGG;AACH,aAAa;AACb,MAAM,UAAU,+BAA+B,CAAC,MAA2B,EAAE,yBAA6E,EAAE;IACxJ,IAAI,sBAAsB,EAAE,CAAC;QACzB,MAAM,CAAC,iBAAiB,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,oBAAoB,CAAC,CAAC;QAC9F,MAAM,CAAC,gBAAgB,CAAW,OAAO,EAAE,sBAAsB,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;QAC5F,MAAM,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;IACtE,CAAC;AACL,CAAC;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,gEAAgE,CAAC;AACjH;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAqB;IACnE,IAAI,EAAE;QACF,WAAW,EAAE,gCAAgC;QAC7C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,oCAAoC;QAC1D,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,+BAA+B;QACtD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,41 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Provides operations to count the resources in the collection.
4
+ */
5
+ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
6
+ /**
7
+ * Get the number of the resource
8
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
+ * @returns {Promise<number>}
10
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
13
+ /**
14
+ * Get the number of the resource
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {RequestInformation}
17
+ */
18
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
19
+ }
20
+ /**
21
+ * Get the number of the resource
22
+ */
23
+ export interface CountRequestBuilderGetQueryParameters {
24
+ /**
25
+ * Filter items by property values
26
+ */
27
+ filter?: string;
28
+ /**
29
+ * Search items by search phrases
30
+ */
31
+ search?: string;
32
+ }
33
+ /**
34
+ * Uri template for the request builder.
35
+ */
36
+ export declare const CountRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/$count{?%24filter,%24search}";
37
+ /**
38
+ * Metadata for all the requests in the request builder.
39
+ */
40
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnI;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,wFAAwF,CAAC;AAQpI;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC"}
@@ -0,0 +1,34 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const CountRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/$count{?%24filter,%24search}";
10
+ /**
11
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
12
+ */
13
+ const CountRequestBuilderGetQueryParametersMapper = {
14
+ "filter": "%24filter",
15
+ "search": "%24search",
16
+ };
17
+ /**
18
+ * Metadata for all the requests in the request builder.
19
+ */
20
+ export const CountRequestBuilderRequestsMetadata = {
21
+ get: {
22
+ uriTemplate: CountRequestBuilderUriTemplate,
23
+ responseBodyContentType: "text/plain;q=0.9",
24
+ errorMappings: {
25
+ XXX: createODataErrorFromDiscriminatorValue,
26
+ },
27
+ adapterMethodName: "sendPrimitive",
28
+ responseBodyFactory: "number",
29
+ queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
30
+ },
31
+ };
32
+ /* tslint:enable */
33
+ /* eslint-enable */
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAmC7H;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,qFAAqF,CAAC;AACpI;;GAEG;AACH,MAAM,2CAA2C,GAA2B;IACxE,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;CACxB,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAqB;IACjE,GAAG,EAAE;QACD,WAAW,EAAE,8BAA8B;QAC3C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,eAAe;QAClC,mBAAmB,EAAG,QAAQ;QAC9B,qBAAqB,EAAE,2CAA2C;KACrE;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,102 @@
1
+ import { type TimeCard, type TimeCardCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js';
2
+ import { type ClockInRequestBuilder } from './clockIn/index.js';
3
+ import { type CountRequestBuilder } from './count/index.js';
4
+ import { type TimeCardItemRequestBuilder } from './item/index.js';
5
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
6
+ /**
7
+ * Provides operations to manage the timeCards property of the microsoft.graph.schedule entity.
8
+ */
9
+ export interface TimeCardsRequestBuilder extends BaseRequestBuilder<TimeCardsRequestBuilder> {
10
+ /**
11
+ * Provides operations to call the clockIn method.
12
+ */
13
+ get clockIn(): ClockInRequestBuilder;
14
+ /**
15
+ * Provides operations to count the resources in the collection.
16
+ */
17
+ get count(): CountRequestBuilder;
18
+ /**
19
+ * Provides operations to manage the timeCards property of the microsoft.graph.schedule entity.
20
+ * @param timeCardId The unique identifier of timeCard
21
+ * @returns {TimeCardItemRequestBuilder}
22
+ */
23
+ byTimeCardId(timeCardId: string): TimeCardItemRequestBuilder;
24
+ /**
25
+ * The time cards in the schedule.
26
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
27
+ * @returns {Promise<TimeCardCollectionResponse>}
28
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
29
+ */
30
+ get(requestConfiguration?: RequestConfiguration<TimeCardsRequestBuilderGetQueryParameters> | undefined): Promise<TimeCardCollectionResponse | undefined>;
31
+ /**
32
+ * Create new navigation property to timeCards for groups
33
+ * @param body The request body
34
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35
+ * @returns {Promise<TimeCard>}
36
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
37
+ */
38
+ post(body: TimeCard, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TimeCard | undefined>;
39
+ /**
40
+ * The time cards in the schedule.
41
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42
+ * @returns {RequestInformation}
43
+ */
44
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<TimeCardsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
45
+ /**
46
+ * Create new navigation property to timeCards for groups
47
+ * @param body The request body
48
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
49
+ * @returns {RequestInformation}
50
+ */
51
+ toPostRequestInformation(body: TimeCard, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
52
+ }
53
+ /**
54
+ * The time cards in the schedule.
55
+ */
56
+ export interface TimeCardsRequestBuilderGetQueryParameters {
57
+ /**
58
+ * Include count of items
59
+ */
60
+ count?: boolean;
61
+ /**
62
+ * Expand related entities
63
+ */
64
+ expand?: string[];
65
+ /**
66
+ * Filter items by property values
67
+ */
68
+ filter?: string;
69
+ /**
70
+ * Order items by property values
71
+ */
72
+ orderby?: string[];
73
+ /**
74
+ * Search items by search phrases
75
+ */
76
+ search?: string;
77
+ /**
78
+ * Select properties to be returned
79
+ */
80
+ select?: string[];
81
+ /**
82
+ * Skip the first n items
83
+ */
84
+ skip?: number;
85
+ /**
86
+ * Show only the first n items
87
+ */
88
+ top?: number;
89
+ }
90
+ /**
91
+ * Uri template for the request builder.
92
+ */
93
+ export declare const TimeCardsRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
94
+ /**
95
+ * Metadata for all the navigation properties in the request builder.
96
+ */
97
+ export declare const TimeCardsRequestBuilderNavigationMetadata: Record<Exclude<keyof TimeCardsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
98
+ /**
99
+ * Metadata for all the requests in the request builder.
100
+ */
101
+ export declare const TimeCardsRequestBuilderRequestsMet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AClJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,QAAQ,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACnI;AACD;;GAEG;AACH,MAAM,WAAW,yCAAyC;IACtD;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AACD;;GAEG;AACH,eAAO,MAAM,kCAAkC,wIAAwI,CAAC;AAcxL;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAY5J,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,gBAuBrD,CAAC"}
@@ -0,0 +1,76 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createTimeCardCollectionResponseFromDiscriminatorValue, createTimeCardFromDiscriminatorValue, serializeTimeCard } from '@microsoft/msgraph-sdk/models/index.js';
6
+ // @ts-ignore
7
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8
+ // @ts-ignore
9
+ import { ClockInRequestBuilderRequestsMetadata } from './clockIn/index.js';
10
+ // @ts-ignore
11
+ import { CountRequestBuilderRequestsMetadata } from './count/index.js';
12
+ // @ts-ignore
13
+ import { TimeCardItemRequestBuilderNavigationMetadata, TimeCardItemRequestBuilderRequestsMetadata } from './item/index.js';
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export const TimeCardsRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
18
+ /**
19
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
20
+ */
21
+ const TimeCardsRequestBuilderGetQueryParametersMapper = {
22
+ "count": "%24count",
23
+ "expand": "%24expand",
24
+ "filter": "%24filter",
25
+ "orderby": "%24orderby",
26
+ "search": "%24search",
27
+ "select": "%24select",
28
+ "skip": "%24skip",
29
+ "top": "%24top",
30
+ };
31
+ /**
32
+ * Metadata for all the navigation properties in the request builder.
33
+ */
34
+ export const TimeCardsRequestBuilderNavigationMetadata = {
35
+ byTimeCardId: {
36
+ requestsMetadata: TimeCardItemRequestBuilderRequestsMetadata,
37
+ navigationMetadata: TimeCardItemRequestBuilderNavigationMetadata,
38
+ pathParametersMappings: ["timeCard%2Did"],
39
+ },
40
+ clockIn: {
41
+ requestsMetadata: ClockInRequestBuilderRequestsMetadata,
42
+ },
43
+ count: {
44
+ requestsMetadata: CountRequestBuilderRequestsMetadata,
45
+ },
46
+ };
47
+ /**
48
+ * Metadata for all the requests in the request builder.
49
+ */
50
+ export const TimeCardsRequestBuilderRequestsMetadata = {
51
+ get: {
52
+ uriTemplate: TimeCardsRequestBuilderUriTemplate,
53
+ responseBodyContentType: "application/json",
54
+ errorMappings: {
55
+ XXX: createODataErrorFromDiscriminatorValue,
56
+ },
57
+ adapterMethodName: "send",
58
+ responseBodyFactory: createTimeCardCollectionResponseFromDiscriminatorValue,
59
+ queryParametersMapper: TimeCardsRequestBuilderGetQueryParametersMapper,
60
+ },
61
+ post: {
62
+ uriTemplate: TimeCardsRequestBuilderUriTemplate,
63
+ responseBodyContentType: "application/json",
64
+ errorMappings: {
65
+ XXX: createODataErrorFromDiscriminatorValue,
66
+ },
67
+ adapterMethodName: "send",
68
+ responseBodyFactory: createTimeCardFromDiscriminatorValue,
69
+ requestBodyContentType: "application/json",
70
+ requestBodySerializer: serializeTimeCard,
71
+ requestInformationContentSetMethod: "setContentFromParsable",
72
+ },
73
+ };
74
+ /* tslint:enable */
75
+ /* eslint-enable */
76
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,sDAAsD,EAAE,oCAAoC,EAAE,iBAAiB,EAAkD,MAAM,wCAAwC,CAAC;AACzN,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAC7H,aAAa;AACb,OAAO,EAAE,qCAAqC,EAA8B,MAAM,oBAAoB,CAAC;AACvG,aAAa;AACb,OAAO,EAAE,mCAAmC,EAA4B,MAAM,kBAAkB,CAAC;AACjG,aAAa;AACb,OAAO,EAAE,4CAA4C,EAAE,0CAA0C,EAAmC,MAAM,iBAAiB,CAAC;AAwF5J;;GAEG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,qIAAqI,CAAC;AACxL;;GAEG;AACH,MAAM,+CAA+C,GAA2B;IAC5E,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;IACrB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,QAAQ;CAClB,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAA2G;IAC7J,YAAY,EAAE;QACV,gBAAgB,EAAE,0CAA0C;QAC5D,kBAAkB,EAAE,4CAA4C;QAChE,sBAAsB,EAAE,CAAC,eAAe,CAAC;KAC5C;IACD,OAAO,EAAE;QACL,gBAAgB,EAAE,qCAAqC;KAC1D;IACD,KAAK,EAAE;QACH,gBAAgB,EAAE,mCAAmC;KACxD;CACJ,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAqB;IACrE,GAAG,EAAE;QACD,WAAW,EAAE,kCAAkC;QAC/C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,sDAAsD;QAC5E,qBAAqB,EAAE,+CAA+C;KACzE;IACD,IAAI,EAAE;QACF,WAAW,EAAE,kCAAkC;QAC/C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,oCAAoC;QAC1D,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,iBAAiB;QACxC,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,65 @@
1
+ import { type ItemBody, type TimeCard } from '@microsoft/msgraph-sdk/models/index.js';
2
+ import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
3
+ export interface ClockOutPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
4
+ /**
5
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
6
+ */
7
+ additionalData?: Record<string, unknown>;
8
+ /**
9
+ * Stores model information.
10
+ */
11
+ backingStoreEnabled?: boolean | null;
12
+ /**
13
+ * The isAtApprovedLocation property
14
+ */
15
+ isAtApprovedLocation?: boolean | null;
16
+ /**
17
+ * The notes property
18
+ */
19
+ notes?: ItemBody | null;
20
+ }
21
+ /**
22
+ * Provides operations to call the clockOut method.
23
+ */
24
+ export interface ClockOutRequestBuilder extends BaseRequestBuilder<ClockOutRequestBuilder> {
25
+ /**
26
+ * Invoke action clockOut
27
+ * @param body The request body
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns {Promise<TimeCard>}
30
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
31
+ */
32
+ post(body: ClockOutPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TimeCard | undefined>;
33
+ /**
34
+ * Invoke action clockOut
35
+ * @param body The request body
36
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37
+ * @returns {RequestInformation}
38
+ */
39
+ toPostRequestInformation(body: ClockOutPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
40
+ }
41
+ /**
42
+ * Creates a new instance of the appropriate class based on discriminator value
43
+ * @param parseNode The parse node to use to read the discriminator value and create the object
44
+ * @returns {ClockOutPostRequestBody}
45
+ */
46
+ export declare function createClockOutPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
47
+ /**
48
+ * The deserialization information for the current model
49
+ * @returns {Record<string, (node: ParseNode) => void>}
50
+ */
51
+ export declare function deserializeIntoClockOutPostRequestBody(clockOutPostRequestBody?: Partial<ClockOutPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
52
+ /**
53
+ * Serializes information the current object
54
+ * @param writer Serialization writer to use to serialize this model
55
+ */
56
+ export declare function serializeClockOutPostRequestBody(writer: SerializationWriter, clockOutPostRequestBody?: Partial<ClockOutPostRequestBody> | undefined | null): void;
57
+ /**
58
+ * Uri template for the request builder.
59
+ */
60
+ export declare const ClockOutRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/clockOut";
61
+ /**
62
+ * Metadata for all the requests in the request builder.
63
+ */
64
+ export declare const ClockOutRequestBuilderRequestsMetadata: Request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AAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAE3K;AACD;;;GAGG;AAEH,wBAAgB,sCAAsC,CAAC,uBAAuB,GAAE,OAAO,CAAC,uBAAuB,CAAC,GAAG,SAAc,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAM7K;AACD;;;GAGG;AAEH,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,mBAAmB,EAAE,uBAAuB,GAAE,OAAO,CAAC,uBAAuB,CAAC,GAAG,SAAS,GAAG,IAAS,GAAI,IAAI,CAMtK;AACD;;GAEG;AACH,eAAO,MAAM,iCAAiC,oFAAoF,CAAC;AACnI;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAE,gBAapD,CAAC"}
@@ -0,0 +1,64 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createItemBodyFromDiscriminatorValue, createTimeCardFromDiscriminatorValue, serializeItemBody } from '@microsoft/msgraph-sdk/models/index.js';
6
+ // @ts-ignore
7
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8
+ /**
9
+ * Creates a new instance of the appropriate class based on discriminator value
10
+ * @param parseNode The parse node to use to read the discriminator value and create the object
11
+ * @returns {ClockOutPostRequestBody}
12
+ */
13
+ // @ts-ignore
14
+ export function createClockOutPostRequestBodyFromDiscriminatorValue(parseNode) {
15
+ return deserializeIntoClockOutPostRequestBody;
16
+ }
17
+ /**
18
+ * The deserialization information for the current model
19
+ * @returns {Record<string, (node: ParseNode) => void>}
20
+ */
21
+ // @ts-ignore
22
+ export function deserializeIntoClockOutPostRequestBody(clockOutPostRequestBody = {}) {
23
+ return {
24
+ "backingStoreEnabled": n => { clockOutPostRequestBody.backingStoreEnabled = true; },
25
+ "isAtApprovedLocation": n => { clockOutPostRequestBody.isAtApprovedLocation = n.getBooleanValue(); },
26
+ "notes": n => { clockOutPostRequestBody.notes = n.getObjectValue(createItemBodyFromDiscriminatorValue); },
27
+ };
28
+ }
29
+ /**
30
+ * Serializes information the current object
31
+ * @param writer Serialization writer to use to serialize this model
32
+ */
33
+ // @ts-ignore
34
+ export function serializeClockOutPostRequestBody(writer, clockOutPostRequestBody = {}) {
35
+ if (clockOutPostRequestBody) {
36
+ writer.writeBooleanValue("isAtApprovedLocation", clockOutPostRequestBody.isAtApprovedLocation);
37
+ writer.writeObjectValue("notes", clockOutPostRequestBody.notes, serializeItemBody);
38
+ writer.writeAdditionalData(clockOutPostRequestBody.additionalData);
39
+ }
40
+ }
41
+ /**
42
+ * Uri template for the request builder.
43
+ */
44
+ export const ClockOutRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/clockOut";
45
+ /**
46
+ * Metadata for all the requests in the request builder.
47
+ */
48
+ export const ClockOutRequestBuilderRequestsMetadata = {
49
+ post: {
50
+ uriTemplate: ClockOutRequestBuilderUriTemplate,
51
+ responseBodyContentType: "application/json",
52
+ errorMappings: {
53
+ XXX: createODataErrorFromDiscriminatorValue,
54
+ },
55
+ adapterMethodName: "send",
56
+ responseBodyFactory: createTimeCardFromDiscriminatorValue,
57
+ requestBodyContentType: "application/json",
58
+ requestBodySerializer: serializeClockOutPostRequestBody,
59
+ requestInformationContentSetMethod: "setContentFromParsable",
60
+ },
61
+ };
62
+ /* tslint:enable */
63
+ /* eslint-enable */
64
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,oCAAoC,EAAE,oCAAoC,EAAE,iBAAiB,EAAmD,MAAM,wCAAwC,CAAC;AACxM,aAAa;AACb,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EAAE,MAAM;QACzB,mBAAmB,EAAG,oCAAoC;QAC1D,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,gCAAgC;QACvD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,30 @@
1
+ import { type TimeCard } from '@microsoft/msgraph-sdk/models/index.js';
2
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Provides operations to call the confirm method.
5
+ */
6
+ export interface ConfirmRequestBuilder extends BaseRequestBuilder<ConfirmRequestBuilder> {
7
+ /**
8
+ * Confirm a timeCard.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<TimeCard>}
11
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
12
+ * @see {@link https://learn.microsoft.com/graph/api/timecard-confirm?view=graph-rest-1.0|Find more info here}
13
+ */
14
+ post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TimeCard | undefined>;
15
+ /**
16
+ * Confirm a timeCard.
17
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
18
+ * @returns {RequestInformation}
19
+ */
20
+ toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
21
+ }
22
+ /**
23
+ * Uri template for the request builder.
24
+ */
25
+ export declare const ConfirmRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/confirm";
26
+ /**
27
+ * Metadata for all the requests in the request builder.
28
+ */
29
+ export declare const ConfirmRequestBuilderRequestsMetadata: RequestsMetadata;
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAwC,KAAK,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAI7G,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;IACpF;;;;;;OAMG;IACF,IAAI,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;IACvG;;;;OAIG;IACF,wBAAwB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACnH;AACD;;GAEG;AACH,eAAO,MAAM,gCAAgC,mFAAmF,CAAC;AACjI;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAUnD,CAAC"}
@@ -0,0 +1,28 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createTimeCardFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/index.js';
6
+ // @ts-ignore
7
+ import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
8
+ /**
9
+ * Uri template for the request builder.
10
+ */
11
+ export const ConfirmRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/confirm";
12
+ /**
13
+ * Metadata for all the requests in the request builder.
14
+ */
15
+ export const ConfirmRequestBuilderRequestsMetadata = {
16
+ post: {
17
+ uriTemplate: ConfirmRequestBuilderUriTemplate,
18
+ responseBodyContentType: "application/json",
19
+ errorMappings: {
20
+ XXX: createODataErrorFromDiscriminatorValue,
21
+ },
22
+ adapterMethodName: "send",
23
+ responseBodyFactory: createTimeCardFromDiscriminatorValue,
24
+ },
25
+ };
26
+ /* tslint:enable */
27
+ /* eslint-enable */
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,oCAAoC,EAAiB,MAAM,wCAAwC,CAAC;AAC7G,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAuB7H;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,gFAAgF,CAAC;AACjI;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAqB;IACnE,IAAI,EAAE;QACF,WAAW,EAAE,gCAAgC;QAC7C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,oCAAoC;KAC7D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}