@microsoft/msgraph-sdk-reports 1.0.0-preview.12 → 1.0.0-preview.13

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 (90) hide show
  1. package/package.json +3 -3
  2. package/reports/authenticationMethods/index.d.ts +1 -1
  3. package/reports/authenticationMethods/index.js +1 -1
  4. package/reports/authenticationMethods/userRegistrationDetails/count/index.d.ts +1 -1
  5. package/reports/authenticationMethods/userRegistrationDetails/count/index.js +1 -1
  6. package/reports/authenticationMethods/userRegistrationDetails/index.d.ts +1 -1
  7. package/reports/authenticationMethods/userRegistrationDetails/index.js +1 -1
  8. package/reports/authenticationMethods/userRegistrationDetails/item/index.d.ts +1 -1
  9. package/reports/authenticationMethods/userRegistrationDetails/item/index.js +1 -1
  10. package/reports/dailyPrintUsageByPrinter/count/index.d.ts +1 -1
  11. package/reports/dailyPrintUsageByPrinter/count/index.js +1 -1
  12. package/reports/dailyPrintUsageByPrinter/index.d.ts +1 -1
  13. package/reports/dailyPrintUsageByPrinter/index.js +1 -1
  14. package/reports/dailyPrintUsageByPrinter/item/index.d.ts +1 -1
  15. package/reports/dailyPrintUsageByPrinter/item/index.js +1 -1
  16. package/reports/dailyPrintUsageByUser/count/index.d.ts +1 -1
  17. package/reports/dailyPrintUsageByUser/count/index.js +1 -1
  18. package/reports/dailyPrintUsageByUser/index.d.ts +1 -1
  19. package/reports/dailyPrintUsageByUser/index.js +1 -1
  20. package/reports/dailyPrintUsageByUser/item/index.d.ts +1 -1
  21. package/reports/dailyPrintUsageByUser/item/index.js +1 -1
  22. package/reports/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/index.d.ts +1 -1
  23. package/reports/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/index.js +1 -1
  24. package/reports/getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/index.d.ts +1 -1
  25. package/reports/getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/index.js +1 -1
  26. package/reports/getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/index.d.ts +1 -1
  27. package/reports/getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/index.js +1 -1
  28. package/reports/index.d.ts +6 -1
  29. package/reports/index.d.ts.map +1 -1
  30. package/reports/index.js +7 -1
  31. package/reports/monthlyPrintUsageByPrinter/count/index.d.ts +1 -1
  32. package/reports/monthlyPrintUsageByPrinter/count/index.js +1 -1
  33. package/reports/monthlyPrintUsageByPrinter/index.d.ts +1 -1
  34. package/reports/monthlyPrintUsageByPrinter/index.js +1 -1
  35. package/reports/monthlyPrintUsageByPrinter/item/index.d.ts +1 -1
  36. package/reports/monthlyPrintUsageByPrinter/item/index.js +1 -1
  37. package/reports/monthlyPrintUsageByUser/count/index.d.ts +1 -1
  38. package/reports/monthlyPrintUsageByUser/count/index.js +1 -1
  39. package/reports/monthlyPrintUsageByUser/index.d.ts +1 -1
  40. package/reports/monthlyPrintUsageByUser/index.js +1 -1
  41. package/reports/monthlyPrintUsageByUser/item/index.d.ts +1 -1
  42. package/reports/monthlyPrintUsageByUser/item/index.js +1 -1
  43. package/reports/partners/billing/index.d.ts +85 -0
  44. package/reports/partners/billing/index.d.ts.map +1 -0
  45. package/reports/partners/billing/index.js +79 -0
  46. package/reports/partners/billing/manifests/count/index.d.ts +40 -0
  47. package/reports/partners/billing/manifests/count/index.d.ts.map +1 -0
  48. package/reports/partners/billing/manifests/count/index.js +35 -0
  49. package/reports/partners/billing/manifests/index.d.ts +95 -0
  50. package/reports/partners/billing/manifests/index.d.ts.map +1 -0
  51. package/reports/partners/billing/manifests/index.js +70 -0
  52. package/reports/partners/billing/manifests/item/index.d.ts +67 -0
  53. package/reports/partners/billing/manifests/item/index.d.ts.map +1 -0
  54. package/reports/partners/billing/manifests/item/index.js +56 -0
  55. package/reports/partners/billing/operations/count/index.d.ts +40 -0
  56. package/reports/partners/billing/operations/count/index.d.ts.map +1 -0
  57. package/reports/partners/billing/operations/count/index.js +35 -0
  58. package/reports/partners/billing/operations/index.d.ts +95 -0
  59. package/reports/partners/billing/operations/index.d.ts.map +1 -0
  60. package/reports/partners/billing/operations/index.js +70 -0
  61. package/reports/partners/billing/operations/item/index.d.ts +67 -0
  62. package/reports/partners/billing/operations/item/index.d.ts.map +1 -0
  63. package/reports/partners/billing/operations/item/index.js +56 -0
  64. package/reports/partners/billing/usage/billed/index.d.ts +75 -0
  65. package/reports/partners/billing/usage/billed/index.d.ts.map +1 -0
  66. package/reports/partners/billing/usage/billed/index.js +66 -0
  67. package/reports/partners/billing/usage/billed/microsoftGraphPartnersBillingExport/index.d.ts +65 -0
  68. package/reports/partners/billing/usage/billed/microsoftGraphPartnersBillingExport/index.d.ts.map +1 -0
  69. package/reports/partners/billing/usage/billed/microsoftGraphPartnersBillingExport/index.js +62 -0
  70. package/reports/partners/billing/usage/index.d.ts +80 -0
  71. package/reports/partners/billing/usage/index.d.ts.map +1 -0
  72. package/reports/partners/billing/usage/index.js +73 -0
  73. package/reports/partners/billing/usage/unbilled/index.d.ts +75 -0
  74. package/reports/partners/billing/usage/unbilled/index.d.ts.map +1 -0
  75. package/reports/partners/billing/usage/unbilled/index.js +66 -0
  76. package/reports/partners/billing/usage/unbilled/microsoftGraphPartnersBillingExport/index.d.ts +69 -0
  77. package/reports/partners/billing/usage/unbilled/microsoftGraphPartnersBillingExport/index.d.ts.map +1 -0
  78. package/reports/partners/billing/usage/unbilled/microsoftGraphPartnersBillingExport/index.js +64 -0
  79. package/reports/partners/index.d.ts +75 -0
  80. package/reports/partners/index.d.ts.map +1 -0
  81. package/reports/partners/index.js +67 -0
  82. package/reports/security/getAttackSimulationRepeatOffenders/index.d.ts +1 -1
  83. package/reports/security/getAttackSimulationRepeatOffenders/index.js +1 -1
  84. package/reports/security/getAttackSimulationSimulationUserCoverage/index.d.ts +1 -1
  85. package/reports/security/getAttackSimulationSimulationUserCoverage/index.js +1 -1
  86. package/reports/security/getAttackSimulationTrainingUserCoverage/index.d.ts +1 -1
  87. package/reports/security/getAttackSimulationTrainingUserCoverage/index.js +1 -1
  88. package/reports/security/index.d.ts +1 -1
  89. package/reports/security/index.js +1 -1
  90. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OperationsRequestBuilderUriTemplate = exports.OperationsRequestBuilderRequestsMetadata = exports.OperationsRequestBuilderNavigationMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ const billing_1 = require("@microsoft/msgraph-sdk/models/partners/billing/");
9
+ const count_1 = require("./count/");
10
+ const item_1 = require("./item/");
11
+ /**
12
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
13
+ */
14
+ const OperationsRequestBuilderGetQueryParametersMapper = {
15
+ "count": "%24count",
16
+ "expand": "%24expand",
17
+ "filter": "%24filter",
18
+ "orderby": "%24orderby",
19
+ "search": "%24search",
20
+ "select": "%24select",
21
+ "skip": "%24skip",
22
+ "top": "%24top",
23
+ };
24
+ /**
25
+ * Metadata for all the navigation properties in the request builder.
26
+ */
27
+ exports.OperationsRequestBuilderNavigationMetadata = {
28
+ byOperationId: {
29
+ uriTemplate: item_1.OperationItemRequestBuilderUriTemplate,
30
+ requestsMetadata: item_1.OperationItemRequestBuilderRequestsMetadata,
31
+ pathParametersMappings: ["operation%2Did"],
32
+ },
33
+ count: {
34
+ uriTemplate: count_1.CountRequestBuilderUriTemplate,
35
+ requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
36
+ },
37
+ };
38
+ /**
39
+ * Metadata for all the requests in the request builder.
40
+ */
41
+ exports.OperationsRequestBuilderRequestsMetadata = {
42
+ get: {
43
+ responseBodyContentType: "application/json",
44
+ errorMappings: {
45
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
46
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
47
+ },
48
+ adapterMethodName: "sendAsync",
49
+ responseBodyFactory: billing_1.createOperationCollectionResponseFromDiscriminatorValue,
50
+ queryParametersMapper: OperationsRequestBuilderGetQueryParametersMapper,
51
+ },
52
+ post: {
53
+ responseBodyContentType: "application/json",
54
+ errorMappings: {
55
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
56
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
57
+ },
58
+ adapterMethodName: "sendAsync",
59
+ responseBodyFactory: billing_1.createOperationFromDiscriminatorValue,
60
+ requestBodyContentType: "application/json",
61
+ requestBodySerializer: billing_1.serializeOperation,
62
+ requestInformationContentSetMethod: "setContentFromParsable",
63
+ },
64
+ };
65
+ /**
66
+ * Uri template for the request builder.
67
+ */
68
+ exports.OperationsRequestBuilderUriTemplate = "{+baseurl}/reports/partners/billing/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
69
+ /* tslint:enable */
70
+ /* eslint-enable */
@@ -0,0 +1,67 @@
1
+ import { type Operation } from '@microsoft/msgraph-sdk/models/partners/billing/';
2
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Provides operations to manage the operations property of the microsoft.graph.partners.billing.billing entity.
5
+ */
6
+ export interface OperationItemRequestBuilder extends BaseRequestBuilder<OperationItemRequestBuilder> {
7
+ /**
8
+ * Delete navigation property operations for reports
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ */
11
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
12
+ /**
13
+ * Read the properties and relationships of an operation object.
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ * @returns a Promise of Operation
16
+ * @see {@link https://learn.microsoft.com/graph/api/partners-billing-operation-get?view=graph-rest-1.0|Find more info here}
17
+ */
18
+ get(requestConfiguration?: RequestConfiguration<OperationItemRequestBuilderGetQueryParameters> | undefined): Promise<Operation | undefined>;
19
+ /**
20
+ * Update the navigation property operations in reports
21
+ * @param body The request body
22
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
+ * @returns a Promise of Operation
24
+ */
25
+ patch(body: Operation, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Operation | undefined>;
26
+ /**
27
+ * Delete navigation property operations for reports
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns a RequestInformation
30
+ */
31
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
32
+ /**
33
+ * Read the properties and relationships of an operation object.
34
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35
+ * @returns a RequestInformation
36
+ */
37
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<OperationItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
38
+ /**
39
+ * Update the navigation property operations in reports
40
+ * @param body The request body
41
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42
+ * @returns a RequestInformation
43
+ */
44
+ toPatchRequestInformation(body: Operation, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
45
+ }
46
+ /**
47
+ * Read the properties and relationships of an operation object.
48
+ */
49
+ export interface OperationItemRequestBuilderGetQueryParameters {
50
+ /**
51
+ * Expand related entities
52
+ */
53
+ expand?: string[];
54
+ /**
55
+ * Select properties to be returned
56
+ */
57
+ select?: string[];
58
+ }
59
+ /**
60
+ * Metadata for all the requests in the request builder.
61
+ */
62
+ export declare const OperationItemRequestBuilderRequestsMetadata: RequestsMetadata;
63
+ /**
64
+ * Uri template for the request builder.
65
+ */
66
+ export declare const OperationItemRequestBuilderUriTemplate = "{+baseurl}/reports/partners/billing/operations/{operation%2Did}{?%24expand,%24select}";
67
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@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OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAQD;;GAEG;AACH,eAAO,MAAM,2CAA2C,EAAE,gBA+BzD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,sCAAsC,0FAA0F,CAAC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OperationItemRequestBuilderUriTemplate = exports.OperationItemRequestBuilderRequestsMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ const billing_1 = require("@microsoft/msgraph-sdk/models/partners/billing/");
9
+ /**
10
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
11
+ */
12
+ const OperationItemRequestBuilderGetQueryParametersMapper = {
13
+ "expand": "%24expand",
14
+ "select": "%24select",
15
+ };
16
+ /**
17
+ * Metadata for all the requests in the request builder.
18
+ */
19
+ exports.OperationItemRequestBuilderRequestsMetadata = {
20
+ delete: {
21
+ responseBodyContentType: "application/json",
22
+ errorMappings: {
23
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
24
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
25
+ },
26
+ adapterMethodName: "sendNoResponseContentAsync",
27
+ },
28
+ get: {
29
+ responseBodyContentType: "application/json",
30
+ errorMappings: {
31
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
32
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
33
+ },
34
+ adapterMethodName: "sendAsync",
35
+ responseBodyFactory: billing_1.createOperationFromDiscriminatorValue,
36
+ queryParametersMapper: OperationItemRequestBuilderGetQueryParametersMapper,
37
+ },
38
+ patch: {
39
+ responseBodyContentType: "application/json",
40
+ errorMappings: {
41
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
42
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
43
+ },
44
+ adapterMethodName: "sendAsync",
45
+ responseBodyFactory: billing_1.createOperationFromDiscriminatorValue,
46
+ requestBodyContentType: "application/json",
47
+ requestBodySerializer: billing_1.serializeOperation,
48
+ requestInformationContentSetMethod: "setContentFromParsable",
49
+ },
50
+ };
51
+ /**
52
+ * Uri template for the request builder.
53
+ */
54
+ exports.OperationItemRequestBuilderUriTemplate = "{+baseurl}/reports/partners/billing/operations/{operation%2Did}{?%24expand,%24select}";
55
+ /* tslint:enable */
56
+ /* eslint-enable */
@@ -0,0 +1,75 @@
1
+ import { type BilledUsage } from '@microsoft/msgraph-sdk/models/partners/billing/';
2
+ import { type MicrosoftGraphPartnersBillingExportRequestBuilder } from './microsoftGraphPartnersBillingExport/';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Provides operations to manage the billed property of the microsoft.graph.partners.billing.azureUsage entity.
6
+ */
7
+ export interface BilledRequestBuilder extends BaseRequestBuilder<BilledRequestBuilder> {
8
+ /**
9
+ * Provides operations to call the export method.
10
+ */
11
+ get microsoftGraphPartnersBillingExport(): MicrosoftGraphPartnersBillingExportRequestBuilder;
12
+ /**
13
+ * Delete navigation property billed for reports
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ */
16
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
17
+ /**
18
+ * Represents details for billed Azure usage data.
19
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
20
+ * @returns a Promise of BilledUsage
21
+ */
22
+ get(requestConfiguration?: RequestConfiguration<BilledRequestBuilderGetQueryParameters> | undefined): Promise<BilledUsage | undefined>;
23
+ /**
24
+ * Update the navigation property billed in reports
25
+ * @param body The request body
26
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
27
+ * @returns a Promise of BilledUsage
28
+ */
29
+ patch(body: BilledUsage, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<BilledUsage | undefined>;
30
+ /**
31
+ * Delete navigation property billed for reports
32
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
33
+ * @returns a RequestInformation
34
+ */
35
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
36
+ /**
37
+ * Represents details for billed Azure usage data.
38
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
39
+ * @returns a RequestInformation
40
+ */
41
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<BilledRequestBuilderGetQueryParameters> | undefined): RequestInformation;
42
+ /**
43
+ * Update the navigation property billed in reports
44
+ * @param body The request body
45
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
46
+ * @returns a RequestInformation
47
+ */
48
+ toPatchRequestInformation(body: BilledUsage, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
49
+ }
50
+ /**
51
+ * Represents details for billed Azure usage data.
52
+ */
53
+ export interface BilledRequestBuilderGetQueryParameters {
54
+ /**
55
+ * Expand related entities
56
+ */
57
+ expand?: string[];
58
+ /**
59
+ * Select properties to be returned
60
+ */
61
+ select?: string[];
62
+ }
63
+ /**
64
+ * Metadata for all the navigation properties in the request builder.
65
+ */
66
+ export declare const BilledRequestBuilderNavigationMetadata: Record<Exclude<keyof BilledRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
67
+ /**
68
+ * Metadata for all the requests in the request builder.
69
+ */
70
+ export declare const BilledRequestBuilderRequestsMetadata: RequestsMetadata;
71
+ /**
72
+ * Uri template for the request builder.
73
+ */
74
+ export declare const BilledRequestBuilderUriTemplate = "{+baseurl}/reports/partners/billing/usage/billed{?%24expand,%24select}";
75
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAA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AAM,WAAW,sCAAsC;IACnD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAQD;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,oBAAoB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAKtJ,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,oCAAoC,EAAE,gBA+BlD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,+BAA+B,2EAA2E,CAAC"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BilledRequestBuilderUriTemplate = exports.BilledRequestBuilderRequestsMetadata = exports.BilledRequestBuilderNavigationMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ const billing_1 = require("@microsoft/msgraph-sdk/models/partners/billing/");
9
+ const microsoftGraphPartnersBillingExport_1 = require("./microsoftGraphPartnersBillingExport/");
10
+ /**
11
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
12
+ */
13
+ const BilledRequestBuilderGetQueryParametersMapper = {
14
+ "expand": "%24expand",
15
+ "select": "%24select",
16
+ };
17
+ /**
18
+ * Metadata for all the navigation properties in the request builder.
19
+ */
20
+ exports.BilledRequestBuilderNavigationMetadata = {
21
+ microsoftGraphPartnersBillingExport: {
22
+ uriTemplate: microsoftGraphPartnersBillingExport_1.MicrosoftGraphPartnersBillingExportRequestBuilderUriTemplate,
23
+ requestsMetadata: microsoftGraphPartnersBillingExport_1.MicrosoftGraphPartnersBillingExportRequestBuilderRequestsMetadata,
24
+ },
25
+ };
26
+ /**
27
+ * Metadata for all the requests in the request builder.
28
+ */
29
+ exports.BilledRequestBuilderRequestsMetadata = {
30
+ delete: {
31
+ responseBodyContentType: "application/json",
32
+ errorMappings: {
33
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
34
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
35
+ },
36
+ adapterMethodName: "sendNoResponseContentAsync",
37
+ },
38
+ get: {
39
+ responseBodyContentType: "application/json",
40
+ errorMappings: {
41
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
42
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
43
+ },
44
+ adapterMethodName: "sendAsync",
45
+ responseBodyFactory: billing_1.createBilledUsageFromDiscriminatorValue,
46
+ queryParametersMapper: BilledRequestBuilderGetQueryParametersMapper,
47
+ },
48
+ patch: {
49
+ responseBodyContentType: "application/json",
50
+ errorMappings: {
51
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
52
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
53
+ },
54
+ adapterMethodName: "sendAsync",
55
+ responseBodyFactory: billing_1.createBilledUsageFromDiscriminatorValue,
56
+ requestBodyContentType: "application/json",
57
+ requestBodySerializer: billing_1.serializeBilledUsage,
58
+ requestInformationContentSetMethod: "setContentFromParsable",
59
+ },
60
+ };
61
+ /**
62
+ * Uri template for the request builder.
63
+ */
64
+ exports.BilledRequestBuilderUriTemplate = "{+baseurl}/reports/partners/billing/usage/billed{?%24expand,%24select}";
65
+ /* tslint:enable */
66
+ /* eslint-enable */
@@ -0,0 +1,65 @@
1
+ import { AttributeSet, type Operation } from '@microsoft/msgraph-sdk/models/partners/billing/';
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 a exportPostRequestBody
7
+ */
8
+ export declare function createExportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
9
+ /**
10
+ * The deserialization information for the current model
11
+ * @returns a Record<string, (node: ParseNode) => void>
12
+ */
13
+ export declare function deserializeIntoExportPostRequestBody(exportPostRequestBody?: Partial<ExportPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
14
+ export interface ExportPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
15
+ /**
16
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
17
+ */
18
+ additionalData?: Record<string, unknown>;
19
+ /**
20
+ * The attributeSet property
21
+ */
22
+ attributeSet?: AttributeSet;
23
+ /**
24
+ * Stores model information.
25
+ */
26
+ backingStoreEnabled?: boolean;
27
+ /**
28
+ * The invoiceId property
29
+ */
30
+ invoiceId?: string;
31
+ }
32
+ /**
33
+ * Provides operations to call the export method.
34
+ */
35
+ export interface MicrosoftGraphPartnersBillingExportRequestBuilder extends BaseRequestBuilder<MicrosoftGraphPartnersBillingExportRequestBuilder> {
36
+ /**
37
+ * Export the billed Azure usage data.
38
+ * @param body The request body
39
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
40
+ * @returns a Promise of Operation
41
+ * @see {@link https://learn.microsoft.com/graph/api/partners-billing-billedusage-export?view=graph-rest-1.0|Find more info here}
42
+ */
43
+ post(body: ExportPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Operation | undefined>;
44
+ /**
45
+ * Export the billed Azure usage data.
46
+ * @param body The request body
47
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
48
+ * @returns a RequestInformation
49
+ */
50
+ toPostRequestInformation(body: ExportPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
51
+ }
52
+ /**
53
+ * Serializes information the current object
54
+ * @param writer Serialization writer to use to serialize this model
55
+ */
56
+ export declare function serializeExportPostRequestBody(writer: SerializationWriter, exportPostRequestBody?: Partial<ExportPostRequestBody> | undefined): void;
57
+ /**
58
+ * Metadata for all the requests in the request builder.
59
+ */
60
+ export declare const MicrosoftGraphPartnersBillingExportRequestBuilderRequestsMetadata: RequestsMetadata;
61
+ /**
62
+ * Uri template for the request builder.
63
+ */
64
+ export declare const MicrosoftGraphPartnersBillingExportRequestBuilderUriTemplate = "{+baseurl}/reports/partners/billing/usage/billed/microsoft.graph.partners.billing.export";
65
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAiF,KAAK,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAC9K,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;AACH,wBAAgB,iDAAiD,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,CAEzK;AACD;;;GAGG;AACH,wBAAgB,oCAAoC,CAAC,qBAAqB,GAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,SAAc,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAMvK;AACD,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACtF;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AACD;;GAEG;AACH,MAAM,WAAW,iDAAkD,SAAQ,kBAAkB,CAAC,iDAAiD,CAAC;IAC5I;;;;;;OAMG;IACF,IAAI,CAAC,IAAI,EAAE,qBAAqB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IACrI;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,qBAAqB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAChJ;AACD;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,mBAAmB,EAAE,qBAAqB,GAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,SAAc,GAAI,IAAI,CAIzJ;AACD;;GAEG;AACH,eAAO,MAAM,iEAAiE,EAAE,gBAa/E,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,4DAA4D,6FAA6F,CAAC"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MicrosoftGraphPartnersBillingExportRequestBuilderUriTemplate = exports.MicrosoftGraphPartnersBillingExportRequestBuilderRequestsMetadata = exports.serializeExportPostRequestBody = exports.deserializeIntoExportPostRequestBody = exports.createExportPostRequestBodyFromDiscriminatorValue = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ const billing_1 = require("@microsoft/msgraph-sdk/models/partners/billing/");
9
+ /**
10
+ * Creates a new instance of the appropriate class based on discriminator value
11
+ * @param parseNode The parse node to use to read the discriminator value and create the object
12
+ * @returns a exportPostRequestBody
13
+ */
14
+ function createExportPostRequestBodyFromDiscriminatorValue(parseNode) {
15
+ return deserializeIntoExportPostRequestBody;
16
+ }
17
+ exports.createExportPostRequestBodyFromDiscriminatorValue = createExportPostRequestBodyFromDiscriminatorValue;
18
+ /**
19
+ * The deserialization information for the current model
20
+ * @returns a Record<string, (node: ParseNode) => void>
21
+ */
22
+ function deserializeIntoExportPostRequestBody(exportPostRequestBody = {}) {
23
+ return {
24
+ "attributeSet": n => { exportPostRequestBody.attributeSet = n.getEnumValue(billing_1.AttributeSetObject); },
25
+ "backingStoreEnabled": n => { exportPostRequestBody.backingStoreEnabled = true; },
26
+ "invoiceId": n => { exportPostRequestBody.invoiceId = n.getStringValue(); },
27
+ };
28
+ }
29
+ exports.deserializeIntoExportPostRequestBody = deserializeIntoExportPostRequestBody;
30
+ /**
31
+ * Serializes information the current object
32
+ * @param writer Serialization writer to use to serialize this model
33
+ */
34
+ function serializeExportPostRequestBody(writer, exportPostRequestBody = {}) {
35
+ writer.writeEnumValue("attributeSet", exportPostRequestBody.attributeSet);
36
+ writer.writeStringValue("invoiceId", exportPostRequestBody.invoiceId);
37
+ writer.writeAdditionalData(exportPostRequestBody.additionalData);
38
+ }
39
+ exports.serializeExportPostRequestBody = serializeExportPostRequestBody;
40
+ /**
41
+ * Metadata for all the requests in the request builder.
42
+ */
43
+ exports.MicrosoftGraphPartnersBillingExportRequestBuilderRequestsMetadata = {
44
+ post: {
45
+ responseBodyContentType: "application/json",
46
+ errorMappings: {
47
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
48
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
49
+ },
50
+ adapterMethodName: "sendAsync",
51
+ responseBodyFactory: billing_1.createOperationFromDiscriminatorValue,
52
+ requestBodyContentType: "application/json",
53
+ requestBodySerializer: serializeExportPostRequestBody,
54
+ requestInformationContentSetMethod: "setContentFromParsable",
55
+ },
56
+ };
57
+ /**
58
+ * Uri template for the request builder.
59
+ */
60
+ exports.MicrosoftGraphPartnersBillingExportRequestBuilderUriTemplate = "{+baseurl}/reports/partners/billing/usage/billed/microsoft.graph.partners.billing.export";
61
+ /* tslint:enable */
62
+ /* eslint-enable */
@@ -0,0 +1,80 @@
1
+ import { type AzureUsage } from '@microsoft/msgraph-sdk/models/partners/billing/';
2
+ import { type BilledRequestBuilder } from './billed/';
3
+ import { type UnbilledRequestBuilder } from './unbilled/';
4
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
5
+ /**
6
+ * Provides operations to manage the usage property of the microsoft.graph.partners.billing.billing entity.
7
+ */
8
+ export interface UsageRequestBuilder extends BaseRequestBuilder<UsageRequestBuilder> {
9
+ /**
10
+ * Provides operations to manage the billed property of the microsoft.graph.partners.billing.azureUsage entity.
11
+ */
12
+ get billed(): BilledRequestBuilder;
13
+ /**
14
+ * Provides operations to manage the unbilled property of the microsoft.graph.partners.billing.azureUsage entity.
15
+ */
16
+ get unbilled(): UnbilledRequestBuilder;
17
+ /**
18
+ * Delete navigation property usage for reports
19
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
20
+ */
21
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
22
+ /**
23
+ * Represents details for billed and unbilled Azure usage data.
24
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
25
+ * @returns a Promise of AzureUsage
26
+ */
27
+ get(requestConfiguration?: RequestConfiguration<UsageRequestBuilderGetQueryParameters> | undefined): Promise<AzureUsage | undefined>;
28
+ /**
29
+ * Update the navigation property usage in reports
30
+ * @param body The request body
31
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
32
+ * @returns a Promise of AzureUsage
33
+ */
34
+ patch(body: AzureUsage, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AzureUsage | undefined>;
35
+ /**
36
+ * Delete navigation property usage for reports
37
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
38
+ * @returns a RequestInformation
39
+ */
40
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
41
+ /**
42
+ * Represents details for billed and unbilled Azure usage data.
43
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
44
+ * @returns a RequestInformation
45
+ */
46
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<UsageRequestBuilderGetQueryParameters> | undefined): RequestInformation;
47
+ /**
48
+ * Update the navigation property usage in reports
49
+ * @param body The request body
50
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
51
+ * @returns a RequestInformation
52
+ */
53
+ toPatchRequestInformation(body: AzureUsage, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
54
+ }
55
+ /**
56
+ * Represents details for billed and unbilled Azure usage data.
57
+ */
58
+ export interface UsageRequestBuilderGetQueryParameters {
59
+ /**
60
+ * Expand related entities
61
+ */
62
+ expand?: string[];
63
+ /**
64
+ * Select properties to be returned
65
+ */
66
+ select?: string[];
67
+ }
68
+ /**
69
+ * Metadata for all the navigation properties in the request builder.
70
+ */
71
+ export declare const UsageRequestBuilderNavigationMetadata: Record<Exclude<keyof UsageRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
72
+ /**
73
+ * Metadata for all the requests in the request builder.
74
+ */
75
+ export declare const UsageRequestBuilderRequestsMetadata: RequestsMetadata;
76
+ /**
77
+ * Uri template for the request builder.
78
+ */
79
+ export declare const UsageRequestBuilderUriTemplate = "{+baseurl}/reports/partners/billing/usage{?%24expand,%24select}";
80
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA+D,KAAK,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC/I,OAAO,EAAiH,KAAK,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACrK,OAAO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AAqC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAQD;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,mBAAmB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAWpJ,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBA+BjD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,8BAA8B,oEAAoE,CAAC"}
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UsageRequestBuilderUriTemplate = exports.UsageRequestBuilderRequestsMetadata = exports.UsageRequestBuilderNavigationMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ const billing_1 = require("@microsoft/msgraph-sdk/models/partners/billing/");
9
+ const billed_1 = require("./billed/");
10
+ const unbilled_1 = require("./unbilled/");
11
+ /**
12
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
13
+ */
14
+ const UsageRequestBuilderGetQueryParametersMapper = {
15
+ "expand": "%24expand",
16
+ "select": "%24select",
17
+ };
18
+ /**
19
+ * Metadata for all the navigation properties in the request builder.
20
+ */
21
+ exports.UsageRequestBuilderNavigationMetadata = {
22
+ billed: {
23
+ uriTemplate: billed_1.BilledRequestBuilderUriTemplate,
24
+ requestsMetadata: billed_1.BilledRequestBuilderRequestsMetadata,
25
+ navigationMetadata: billed_1.BilledRequestBuilderNavigationMetadata,
26
+ },
27
+ unbilled: {
28
+ uriTemplate: unbilled_1.UnbilledRequestBuilderUriTemplate,
29
+ requestsMetadata: unbilled_1.UnbilledRequestBuilderRequestsMetadata,
30
+ navigationMetadata: unbilled_1.UnbilledRequestBuilderNavigationMetadata,
31
+ },
32
+ };
33
+ /**
34
+ * Metadata for all the requests in the request builder.
35
+ */
36
+ exports.UsageRequestBuilderRequestsMetadata = {
37
+ delete: {
38
+ responseBodyContentType: "application/json",
39
+ errorMappings: {
40
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
41
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
42
+ },
43
+ adapterMethodName: "sendNoResponseContentAsync",
44
+ },
45
+ get: {
46
+ responseBodyContentType: "application/json",
47
+ errorMappings: {
48
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
49
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
50
+ },
51
+ adapterMethodName: "sendAsync",
52
+ responseBodyFactory: billing_1.createAzureUsageFromDiscriminatorValue,
53
+ queryParametersMapper: UsageRequestBuilderGetQueryParametersMapper,
54
+ },
55
+ patch: {
56
+ responseBodyContentType: "application/json",
57
+ errorMappings: {
58
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
59
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
60
+ },
61
+ adapterMethodName: "sendAsync",
62
+ responseBodyFactory: billing_1.createAzureUsageFromDiscriminatorValue,
63
+ requestBodyContentType: "application/json",
64
+ requestBodySerializer: billing_1.serializeAzureUsage,
65
+ requestInformationContentSetMethod: "setContentFromParsable",
66
+ },
67
+ };
68
+ /**
69
+ * Uri template for the request builder.
70
+ */
71
+ exports.UsageRequestBuilderUriTemplate = "{+baseurl}/reports/partners/billing/usage{?%24expand,%24select}";
72
+ /* tslint:enable */
73
+ /* eslint-enable */