@microsoft/msgraph-sdk-users 1.0.0-preview.88 → 1.0.0-preview.90

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 (61) hide show
  1. package/package.json +1 -1
  2. package/tsconfig.tsbuildinfo +1 -1
  3. package/users/item/chats/item/targetedMessages/index.d.ts +3 -3
  4. package/users/item/chats/item/targetedMessages/item/index.d.ts +3 -3
  5. package/users/item/index.d.ts +5 -0
  6. package/users/item/index.d.ts.map +1 -1
  7. package/users/item/index.js +6 -0
  8. package/users/item/index.js.map +1 -1
  9. package/users/item/notes/count/index.d.ts +41 -0
  10. package/users/item/notes/count/index.d.ts.map +1 -0
  11. package/users/item/notes/count/index.js +34 -0
  12. package/users/item/notes/count/index.js.map +1 -0
  13. package/users/item/notes/delta/index.d.ts +92 -0
  14. package/users/item/notes/delta/index.d.ts.map +1 -0
  15. package/users/item/notes/delta/index.js +74 -0
  16. package/users/item/notes/delta/index.js.map +1 -0
  17. package/users/item/notes/index.d.ts +102 -0
  18. package/users/item/notes/index.d.ts.map +1 -0
  19. package/users/item/notes/index.js +76 -0
  20. package/users/item/notes/index.js.map +1 -0
  21. package/users/item/notes/item/attachments/count/index.d.ts +41 -0
  22. package/users/item/notes/item/attachments/count/index.d.ts.map +1 -0
  23. package/users/item/notes/item/attachments/count/index.js +34 -0
  24. package/users/item/notes/item/attachments/count/index.js.map +1 -0
  25. package/users/item/notes/item/attachments/createUploadSession/index.d.ts +61 -0
  26. package/users/item/notes/item/attachments/createUploadSession/index.d.ts.map +1 -0
  27. package/users/item/notes/item/attachments/createUploadSession/index.js +66 -0
  28. package/users/item/notes/item/attachments/createUploadSession/index.js.map +1 -0
  29. package/users/item/notes/item/attachments/index.d.ts +102 -0
  30. package/users/item/notes/item/attachments/index.d.ts.map +1 -0
  31. package/users/item/notes/item/attachments/index.js +75 -0
  32. package/users/item/notes/item/attachments/index.js.map +1 -0
  33. package/users/item/notes/item/attachments/item/index.d.ts +54 -0
  34. package/users/item/notes/item/attachments/item/index.d.ts.map +1 -0
  35. package/users/item/notes/item/attachments/item/index.js +44 -0
  36. package/users/item/notes/item/attachments/item/index.js.map +1 -0
  37. package/users/item/notes/item/extensions/count/index.d.ts +41 -0
  38. package/users/item/notes/item/extensions/count/index.d.ts.map +1 -0
  39. package/users/item/notes/item/extensions/count/index.js +34 -0
  40. package/users/item/notes/item/extensions/count/index.js.map +1 -0
  41. package/users/item/notes/item/extensions/index.d.ts +97 -0
  42. package/users/item/notes/item/extensions/index.d.ts.map +1 -0
  43. package/users/item/notes/item/extensions/index.js +70 -0
  44. package/users/item/notes/item/extensions/index.js.map +1 -0
  45. package/users/item/notes/item/extensions/item/index.d.ts +69 -0
  46. package/users/item/notes/item/extensions/item/index.d.ts.map +1 -0
  47. package/users/item/notes/item/extensions/item/index.js +56 -0
  48. package/users/item/notes/item/extensions/item/index.js.map +1 -0
  49. package/users/item/notes/item/index.d.ts +83 -0
  50. package/users/item/notes/item/index.d.ts.map +1 -0
  51. package/users/item/notes/item/index.js +73 -0
  52. package/users/item/notes/item/index.js.map +1 -0
  53. package/users/item/teamwork/deleteTargetedMessage/index.d.ts +3 -2
  54. package/users/item/teamwork/deleteTargetedMessage/index.d.ts.map +1 -1
  55. package/users/item/teamwork/deleteTargetedMessage/index.js.map +1 -1
  56. package/users/item/teamwork/getAllRetainedTargetedMessages/index.d.ts +4 -3
  57. package/users/item/teamwork/getAllRetainedTargetedMessages/index.d.ts.map +1 -1
  58. package/users/item/teamwork/getAllRetainedTargetedMessages/index.js.map +1 -1
  59. package/users/item/teamwork/getAllTargetedMessages/index.d.ts +4 -3
  60. package/users/item/teamwork/getAllTargetedMessages/index.d.ts.map +1 -1
  61. package/users/item/teamwork/getAllTargetedMessages/index.js.map +1 -1
@@ -0,0 +1,76 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createNoteCollectionResponseFromDiscriminatorValue, createNoteFromDiscriminatorValue, serializeNote } 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 { CountRequestBuilderRequestsMetadata } from './count/index.js';
10
+ // @ts-ignore
11
+ import { DeltaRequestBuilderRequestsMetadata } from './delta/index.js';
12
+ // @ts-ignore
13
+ import { NoteItemRequestBuilderNavigationMetadata, NoteItemRequestBuilderRequestsMetadata } from './item/index.js';
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export const NotesRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/notes{?%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 NotesRequestBuilderGetQueryParametersMapper = {
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 NotesRequestBuilderNavigationMetadata = {
35
+ byNoteId: {
36
+ requestsMetadata: NoteItemRequestBuilderRequestsMetadata,
37
+ navigationMetadata: NoteItemRequestBuilderNavigationMetadata,
38
+ pathParametersMappings: ["note%2Did"],
39
+ },
40
+ count: {
41
+ requestsMetadata: CountRequestBuilderRequestsMetadata,
42
+ },
43
+ delta: {
44
+ requestsMetadata: DeltaRequestBuilderRequestsMetadata,
45
+ },
46
+ };
47
+ /**
48
+ * Metadata for all the requests in the request builder.
49
+ */
50
+ export const NotesRequestBuilderRequestsMetadata = {
51
+ get: {
52
+ uriTemplate: NotesRequestBuilderUriTemplate,
53
+ responseBodyContentType: "application/json",
54
+ errorMappings: {
55
+ XXX: createODataErrorFromDiscriminatorValue,
56
+ },
57
+ adapterMethodName: "send",
58
+ responseBodyFactory: createNoteCollectionResponseFromDiscriminatorValue,
59
+ queryParametersMapper: NotesRequestBuilderGetQueryParametersMapper,
60
+ },
61
+ post: {
62
+ uriTemplate: NotesRequestBuilderUriTemplate,
63
+ responseBodyContentType: "application/json",
64
+ errorMappings: {
65
+ XXX: createODataErrorFromDiscriminatorValue,
66
+ },
67
+ adapterMethodName: "send",
68
+ responseBodyFactory: createNoteFromDiscriminatorValue,
69
+ requestBodyContentType: "application/json",
70
+ requestBodySerializer: serializeNote,
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,kDAAkD,EAAE,gCAAgC,EAAE,aAAa,EAA0C,MAAM,wCAAwC,CAAC;AACrM,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAC7H,aAAa;AACb,OAAO,EAAE,mCAAmC,EAA4B,MAAM,kBAAkB,CAAC;AACjG,aAAa;AACb,OAAO,EAAE,mCAAmC,EAA4B,MAAM,kBAAkB,CAAC;AACjG,aAAa;AACb,OAAO,EAAE,wCAAwC,EAAE,sCAAsC,EAA+B,MAAM,iBAAiB,CAAC;AAwFhJ;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,iHAAiH,CAAC;AAChK;;GAEG;AACH,MAAM,2CAA2C,GAA2B;IACxE,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,qCAAqC,GAAuG;IACrJ,QAAQ,EAAE;QACN,gBAAgB,EAAE,sCAAsC;QACxD,kBAAkB,EAAE,wCAAwC;QAC5D,sBAAsB,EAAE,CAAC,WAAW,CAAC;KACxC;IACD,KAAK,EAAE;QACH,gBAAgB,EAAE,mCAAmC;KACxD;IACD,KAAK,EAAE;QACH,gBAAgB,EAAE,mCAAmC;KACxD;CACJ,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,MAAM;QACzB,mBAAmB,EAAG,kDAAkD;QACxE,qBAAqB,EAAE,2CAA2C;KACrE;IACD,IAAI,EAAE;QACF,WAAW,EAAE,8BAA8B;QAC3C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,gCAAgC;QACtD,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,aAAa;QACpC,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}/users/{user%2Did}/notes/{note%2Did}/attachments/$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,4FAA4F,CAAC;AAQxI;;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}/users/{user%2Did}/notes/{note%2Did}/attachments/$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,yFAAyF,CAAC;AACxI;;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,61 @@
1
+ import { type AttachmentItem, type UploadSession } 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
+ /**
4
+ * Creates a new instance of the appropriate class based on discriminator value
5
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6
+ * @returns {CreateUploadSessionPostRequestBody}
7
+ */
8
+ export declare function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
9
+ export interface CreateUploadSessionPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
10
+ /**
11
+ * The AttachmentItem property
12
+ */
13
+ attachmentItem?: AttachmentItem | null;
14
+ /**
15
+ * Stores model information.
16
+ */
17
+ backingStoreEnabled?: boolean | null;
18
+ }
19
+ /**
20
+ * Provides operations to call the createUploadSession method.
21
+ */
22
+ export interface CreateUploadSessionRequestBuilder extends BaseRequestBuilder<CreateUploadSessionRequestBuilder> {
23
+ /**
24
+ * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example.
25
+ * @param body The request body
26
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
27
+ * @returns {Promise<UploadSession>}
28
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
29
+ * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here}
30
+ */
31
+ post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UploadSession | undefined>;
32
+ /**
33
+ * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example.
34
+ * @param body The request body
35
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
36
+ * @returns {RequestInformation}
37
+ */
38
+ toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
39
+ }
40
+ /**
41
+ * The deserialization information for the current model
42
+ * @param CreateUploadSessionPostRequestBody The instance to deserialize into.
43
+ * @returns {Record<string, (node: ParseNode) => void>}
44
+ */
45
+ export declare function deserializeIntoCreateUploadSessionPostRequestBody(createUploadSessionPostRequestBody?: Partial<CreateUploadSessionPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
46
+ /**
47
+ * Serializes information the current object
48
+ * @param CreateUploadSessionPostRequestBody The instance to serialize from.
49
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
50
+ * @param writer Serialization writer to use to serialize this model
51
+ */
52
+ export declare function serializeCreateUploadSessionPostRequestBody(writer: SerializationWriter, createUploadSessionPostRequestBody?: Partial<CreateUploadSessionPostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
53
+ /**
54
+ * Uri template for the request builder.
55
+ */
56
+ export declare const CreateUploadSessionRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/notes/{note%2Did}/attachments/createUploadSession";
57
+ /**
58
+ * Metadata for all the requests in the request builder.
59
+ */
60
+ export declare const CreateUploadSessionRequestBuilderRequestsMetadata: RequestsMetadata;
61
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA0I,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAIzO,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;;;;GAIG;AAEH,wBAAgB,8DAA8D,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,CAEtL;AACD,MAAM,WAAW,kCAAmC,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACnG;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACvC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACxC;AACD;;GAEG;AACH,MAAM,WAAW,iCAAkC,SAAQ,kBAAkB,CAAC,iCAAiC,CAAC;IAC5G;;;;;;;OAOG;IACF,IAAI,CAAC,IAAI,EAAE,kCAAkC,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAAC;IACtJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,kCAAkC,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC7J;AACD;;;;GAIG;AAEH,wBAAgB,iDAAiD,CAAC,kCAAkC,GAAE,OAAO,CAAC,kCAAkC,CAAC,GAAG,SAAc,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAK9M;AACD;;;;;GAKG;AAEH,wBAAgB,2CAA2C,CAAC,MAAM,EAAE,mBAAmB,EAAE,kCAAkC,GAAE,OAAO,CAAC,kCAAkC,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAIlP;AACD;;GAEG;AACH,eAAO,MAAM,4CAA4C,mFAAmF,CAAC;AAC7I;;GAEG;AACH,eAAO,MAAM,iDAAiD,EAAE,gBAa/D,CAAC"}
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createAttachmentItemFromDiscriminatorValue, createUploadSessionFromDiscriminatorValue, serializeAttachmentItem } 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 {CreateUploadSessionPostRequestBody}
12
+ */
13
+ // @ts-ignore
14
+ export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode) {
15
+ return deserializeIntoCreateUploadSessionPostRequestBody;
16
+ }
17
+ /**
18
+ * The deserialization information for the current model
19
+ * @param CreateUploadSessionPostRequestBody The instance to deserialize into.
20
+ * @returns {Record<string, (node: ParseNode) => void>}
21
+ */
22
+ // @ts-ignore
23
+ export function deserializeIntoCreateUploadSessionPostRequestBody(createUploadSessionPostRequestBody = {}) {
24
+ return {
25
+ "AttachmentItem": n => { createUploadSessionPostRequestBody.attachmentItem = n.getObjectValue(createAttachmentItemFromDiscriminatorValue); },
26
+ "backingStoreEnabled": n => { createUploadSessionPostRequestBody.backingStoreEnabled = true; },
27
+ };
28
+ }
29
+ /**
30
+ * Serializes information the current object
31
+ * @param CreateUploadSessionPostRequestBody The instance to serialize from.
32
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
33
+ * @param writer Serialization writer to use to serialize this model
34
+ */
35
+ // @ts-ignore
36
+ export function serializeCreateUploadSessionPostRequestBody(writer, createUploadSessionPostRequestBody = {}, isSerializingDerivedType = false) {
37
+ if (!createUploadSessionPostRequestBody || isSerializingDerivedType) {
38
+ return;
39
+ }
40
+ writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem);
41
+ writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData);
42
+ }
43
+ /**
44
+ * Uri template for the request builder.
45
+ */
46
+ export const CreateUploadSessionRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/notes/{note%2Did}/attachments/createUploadSession";
47
+ /**
48
+ * Metadata for all the requests in the request builder.
49
+ */
50
+ export const CreateUploadSessionRequestBuilderRequestsMetadata = {
51
+ post: {
52
+ uriTemplate: CreateUploadSessionRequestBuilderUriTemplate,
53
+ responseBodyContentType: "application/json",
54
+ errorMappings: {
55
+ XXX: createODataErrorFromDiscriminatorValue,
56
+ },
57
+ adapterMethodName: "send",
58
+ responseBodyFactory: createUploadSessionFromDiscriminatorValue,
59
+ requestBodyContentType: "application/json",
60
+ requestBodySerializer: serializeCreateUploadSessionPostRequestBody,
61
+ requestInformationContentSetMethod: "setContentFromParsable",
62
+ },
63
+ };
64
+ /* tslint:enable */
65
+ /* eslint-enable */
66
+ //# 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,0CAA0C,EAAE,yCAAyC,EAAE,uBAAuB,EAAmE,MAAM,wCAAwC,CAAC;AACzO,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAI7H;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,8DAA8D,CAAC,SAAgC;IAC3G,OAAO,iDAAiD,CAAC;AAC7D,CAAC;AAgCD;;;;GAIG;AACH,aAAa;AACb,MAAM,UAAU,iDAAiD,CAAC,qCAA8F,EAAE;IAC9J,OAAO;QACH,gBAAgB,EAAE,CAAC,CAAC,EAAE,GAAG,kCAAkC,CAAC,cAAc,GAAG,CAAC,CAAC,cAAc,CAAiB,0CAA0C,CAAC,CAAC,CAAC,CAAC;QAC5J,qBAAqB,EAAE,CAAC,CAAC,EAAE,GAAG,kCAAkC,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC,CAAC;KACjG,CAAA;AACL,CAAC;AACD;;;;;GAKG;AACH,aAAa;AACb,MAAM,UAAU,2CAA2C,CAAC,MAA2B,EAAE,qCAAqG,EAAE,EAAE,2BAAoC,KAAK;IACvO,IAAI,CAAC,kCAAkC,IAAI,wBAAwB,EAAE,CAAC;QAAC,OAAO;IAAC,CAAC;IAChF,MAAM,CAAC,gBAAgB,CAAiB,gBAAgB,EAAE,kCAAkC,CAAC,cAAc,EAAE,uBAAuB,CAAC,CAAC;IACtI,MAAM,CAAC,mBAAmB,CAAC,kCAAkC,CAAC,cAAc,CAAC,CAAC;AAClF,CAAC;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,4CAA4C,GAAG,gFAAgF,CAAC;AAC7I;;GAEG;AACH,MAAM,CAAC,MAAM,iDAAiD,GAAqB;IAC/E,IAAI,EAAE;QACF,WAAW,EAAE,4CAA4C;QACzD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,yCAAyC;QAC/D,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,2CAA2C;QAClE,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,102 @@
1
+ import { type Attachment, type AttachmentCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js';
2
+ import { type CountRequestBuilder } from './count/index.js';
3
+ import { type CreateUploadSessionRequestBuilder } from './createUploadSession/index.js';
4
+ import { type AttachmentItemRequestBuilder } 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 attachments property of the microsoft.graph.note entity.
8
+ */
9
+ export interface AttachmentsRequestBuilder extends BaseRequestBuilder<AttachmentsRequestBuilder> {
10
+ /**
11
+ * Provides operations to count the resources in the collection.
12
+ */
13
+ get count(): CountRequestBuilder;
14
+ /**
15
+ * Provides operations to call the createUploadSession method.
16
+ */
17
+ get createUploadSession(): CreateUploadSessionRequestBuilder;
18
+ /**
19
+ * Provides operations to manage the attachments property of the microsoft.graph.note entity.
20
+ * @param attachmentId The unique identifier of attachment
21
+ * @returns {AttachmentItemRequestBuilder}
22
+ */
23
+ byAttachmentId(attachmentId: string): AttachmentItemRequestBuilder;
24
+ /**
25
+ * The file attachments for the note. Only inline image attachments (image/png, image/jpeg, image/gif, or image/bmp) are supported, with a maximum size of 3 MB per attachment. Use $expand to retrieve attachments.
26
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
27
+ * @returns {Promise<AttachmentCollectionResponse>}
28
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
29
+ */
30
+ get(requestConfiguration?: RequestConfiguration<AttachmentsRequestBuilderGetQueryParameters> | undefined): Promise<AttachmentCollectionResponse | undefined>;
31
+ /**
32
+ * Create new navigation property to attachments for users
33
+ * @param body The request body
34
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35
+ * @returns {Promise<Attachment>}
36
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
37
+ */
38
+ post(body: Attachment, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Attachment | undefined>;
39
+ /**
40
+ * The file attachments for the note. Only inline image attachments (image/png, image/jpeg, image/gif, or image/bmp) are supported, with a maximum size of 3 MB per attachment. Use $expand to retrieve attachments.
41
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42
+ * @returns {RequestInformation}
43
+ */
44
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<AttachmentsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
45
+ /**
46
+ * Create new navigation property to attachments for users
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: Attachment, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
52
+ }
53
+ /**
54
+ * The file attachments for the note. Only inline image attachments (image/png, image/jpeg, image/gif, or image/bmp) are supported, with a maximum size of 3 MB per attachment. Use $expand to retrieve attachments.
55
+ */
56
+ export interface AttachmentsRequestBuilderGetQueryParameters {
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 AttachmentsRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/notes/{note%2Did}/attachments{?%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 AttachmentsRequestBuilderNavigationMetadata: Record<Exclude<keyof AttachmentsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
98
+ /**
99
+ * Metadata for all the requests in the request builder.
100
+ */
101
+ export declare const AttachmentsRequestBuilderRequestsMetadata: RequestsMetadata;
102
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyH,KAAK,UAAU,EAAE,KAAK,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAInO,OAAO,EAAuC,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEjG,OAAO,EAAqD,KAAK,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AAE3I,OAAO,EAAgD,KAAK,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAElH,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB,CAAC,yBAAyB,CAAC;IAC5F;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;OAEG;IACH,IAAI,mBAAmB,IAAI,iCAAiC,CAAC;IAC7D;;;;OAIG;IACF,cAAc,CAAC,YAAY,EAAE,MAAM,GAAI,4BAA4B,CAAC;IACrE;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,2CAA2C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,4BAA4B,GAAG,SAAS,CAAC,CAAC;IAC/J;;;;;;OAMG;IACF,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IAC3H;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,2CAA2C,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IACpJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,UAAU,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACrI;AACD;;GAEG;AACH,MAAM,WAAW,2CAA2C;IACxD;;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,oCAAoC,4IAA4I,CAAC;AAc9L;;GAEG;AACH,eAAO,MAAM,2CAA2C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,yBAAyB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAWhK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,gBAuBvD,CAAC"}
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createAttachmentCollectionResponseFromDiscriminatorValue, createAttachmentFromDiscriminatorValue, serializeAttachment } 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 { CountRequestBuilderRequestsMetadata } from './count/index.js';
10
+ // @ts-ignore
11
+ import { CreateUploadSessionRequestBuilderRequestsMetadata } from './createUploadSession/index.js';
12
+ // @ts-ignore
13
+ import { AttachmentItemRequestBuilderRequestsMetadata } from './item/index.js';
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export const AttachmentsRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/notes/{note%2Did}/attachments{?%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 AttachmentsRequestBuilderGetQueryParametersMapper = {
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 AttachmentsRequestBuilderNavigationMetadata = {
35
+ byAttachmentId: {
36
+ requestsMetadata: AttachmentItemRequestBuilderRequestsMetadata,
37
+ pathParametersMappings: ["attachment%2Did"],
38
+ },
39
+ count: {
40
+ requestsMetadata: CountRequestBuilderRequestsMetadata,
41
+ },
42
+ createUploadSession: {
43
+ requestsMetadata: CreateUploadSessionRequestBuilderRequestsMetadata,
44
+ },
45
+ };
46
+ /**
47
+ * Metadata for all the requests in the request builder.
48
+ */
49
+ export const AttachmentsRequestBuilderRequestsMetadata = {
50
+ get: {
51
+ uriTemplate: AttachmentsRequestBuilderUriTemplate,
52
+ responseBodyContentType: "application/json",
53
+ errorMappings: {
54
+ XXX: createODataErrorFromDiscriminatorValue,
55
+ },
56
+ adapterMethodName: "send",
57
+ responseBodyFactory: createAttachmentCollectionResponseFromDiscriminatorValue,
58
+ queryParametersMapper: AttachmentsRequestBuilderGetQueryParametersMapper,
59
+ },
60
+ post: {
61
+ uriTemplate: AttachmentsRequestBuilderUriTemplate,
62
+ responseBodyContentType: "application/json",
63
+ errorMappings: {
64
+ XXX: createODataErrorFromDiscriminatorValue,
65
+ },
66
+ adapterMethodName: "send",
67
+ responseBodyFactory: createAttachmentFromDiscriminatorValue,
68
+ requestBodyContentType: "application/json",
69
+ requestBodySerializer: serializeAttachment,
70
+ requestInformationContentSetMethod: "setContentFromParsable",
71
+ },
72
+ };
73
+ /* tslint:enable */
74
+ /* eslint-enable */
75
+ //# 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,wDAAwD,EAAE,sCAAsC,EAAE,mBAAmB,EAAsD,MAAM,wCAAwC,CAAC;AACnO,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AAC7H,aAAa;AACb,OAAO,EAAE,mCAAmC,EAA4B,MAAM,kBAAkB,CAAC;AACjG,aAAa;AACb,OAAO,EAAE,iDAAiD,EAA0C,MAAM,gCAAgC,CAAC;AAC3I,aAAa;AACb,OAAO,EAAE,4CAA4C,EAAqC,MAAM,iBAAiB,CAAC;AAwFlH;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,yIAAyI,CAAC;AAC9L;;GAEG;AACH,MAAM,iDAAiD,GAA2B;IAC9E,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,2CAA2C,GAA6G;IACjK,cAAc,EAAE;QACZ,gBAAgB,EAAE,4CAA4C;QAC9D,sBAAsB,EAAE,CAAC,iBAAiB,CAAC;KAC9C;IACD,KAAK,EAAE;QACH,gBAAgB,EAAE,mCAAmC;KACxD;IACD,mBAAmB,EAAE;QACjB,gBAAgB,EAAE,iDAAiD;KACtE;CACJ,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAqB;IACvE,GAAG,EAAE;QACD,WAAW,EAAE,oCAAoC;QACjD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,wDAAwD;QAC9E,qBAAqB,EAAE,iDAAiD;KAC3E;IACD,IAAI,EAAE;QACF,WAAW,EAAE,oCAAoC;QACjD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,sCAAsC;QAC5D,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,mBAAmB;QAC1C,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,54 @@
1
+ import { type Attachment } 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 manage the attachments property of the microsoft.graph.note entity.
5
+ */
6
+ export interface AttachmentItemRequestBuilder extends BaseRequestBuilder<AttachmentItemRequestBuilder> {
7
+ /**
8
+ * Delete navigation property attachments for users
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
11
+ */
12
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
13
+ /**
14
+ * The file attachments for the note. Only inline image attachments (image/png, image/jpeg, image/gif, or image/bmp) are supported, with a maximum size of 3 MB per attachment. Use $expand to retrieve attachments.
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {Promise<Attachment>}
17
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
18
+ */
19
+ get(requestConfiguration?: RequestConfiguration<AttachmentItemRequestBuilderGetQueryParameters> | undefined): Promise<Attachment | undefined>;
20
+ /**
21
+ * Delete navigation property attachments for users
22
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
+ * @returns {RequestInformation}
24
+ */
25
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
26
+ /**
27
+ * The file attachments for the note. Only inline image attachments (image/png, image/jpeg, image/gif, or image/bmp) are supported, with a maximum size of 3 MB per attachment. Use $expand to retrieve attachments.
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns {RequestInformation}
30
+ */
31
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<AttachmentItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
32
+ }
33
+ /**
34
+ * The file attachments for the note. Only inline image attachments (image/png, image/jpeg, image/gif, or image/bmp) are supported, with a maximum size of 3 MB per attachment. Use $expand to retrieve attachments.
35
+ */
36
+ export interface AttachmentItemRequestBuilderGetQueryParameters {
37
+ /**
38
+ * Expand related entities
39
+ */
40
+ expand?: string[];
41
+ /**
42
+ * Select properties to be returned
43
+ */
44
+ select?: string[];
45
+ }
46
+ /**
47
+ * Uri template for the request builder.
48
+ */
49
+ export declare const AttachmentItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/notes/{note%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}";
50
+ /**
51
+ * Metadata for all the requests in the request builder.
52
+ */
53
+ export declare const AttachmentItemRequestBuilderRequestsMetadata: RequestsMetadata;
54
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA0C,KAAK,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAIjH,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,kBAAkB,CAAC,4BAA4B,CAAC;IAClG;;;;OAIG;IACF,MAAM,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzF;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,8CAA8C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IAChJ;;;;OAIG;IACF,0BAA0B,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAClH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,8CAA8C,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC1J;AACD;;GAEG;AACH,MAAM,WAAW,8CAA8C;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AACD;;GAEG;AACH,eAAO,MAAM,uCAAuC,uGAAuG,CAAC;AAQ5J;;GAEG;AACH,eAAO,MAAM,4CAA4C,EAAE,gBAmB1D,CAAC"}
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createAttachmentFromDiscriminatorValue } 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 AttachmentItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/notes/{note%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}";
12
+ /**
13
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
14
+ */
15
+ const AttachmentItemRequestBuilderGetQueryParametersMapper = {
16
+ "expand": "%24expand",
17
+ "select": "%24select",
18
+ };
19
+ /**
20
+ * Metadata for all the requests in the request builder.
21
+ */
22
+ export const AttachmentItemRequestBuilderRequestsMetadata = {
23
+ delete: {
24
+ uriTemplate: AttachmentItemRequestBuilderUriTemplate,
25
+ responseBodyContentType: "application/json",
26
+ errorMappings: {
27
+ XXX: createODataErrorFromDiscriminatorValue,
28
+ },
29
+ adapterMethodName: "sendNoResponseContent",
30
+ },
31
+ get: {
32
+ uriTemplate: AttachmentItemRequestBuilderUriTemplate,
33
+ responseBodyContentType: "application/json",
34
+ errorMappings: {
35
+ XXX: createODataErrorFromDiscriminatorValue,
36
+ },
37
+ adapterMethodName: "send",
38
+ responseBodyFactory: createAttachmentFromDiscriminatorValue,
39
+ queryParametersMapper: AttachmentItemRequestBuilderGetQueryParametersMapper,
40
+ },
41
+ };
42
+ /* tslint:enable */
43
+ /* eslint-enable */
44
+ //# 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,wCAAwC,CAAC;AACjH,aAAa;AACb,OAAO,EAAE,sCAAsC,EAAmB,MAAM,oDAAoD,CAAC;AA+C7H;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,oGAAoG,CAAC;AAC5J;;GAEG;AACH,MAAM,oDAAoD,GAA2B;IACjF,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;CACxB,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,4CAA4C,GAAqB;IAC1E,MAAM,EAAE;QACJ,WAAW,EAAE,uCAAuC;QACpD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,uBAAuB;KAC7C;IACD,GAAG,EAAE;QACD,WAAW,EAAE,uCAAuC;QACpD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,sCAAmE;SAC3E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,sCAAsC;QAC5D,qBAAqB,EAAE,oDAAoD;KAC9E;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}