@azure/arm-defendereasm 1.0.0-beta.1

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 (154) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +2047 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/labelsCreateAndUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/labelsCreateAndUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/labelsCreateAndUpdateSample.js +40 -0
  11. package/dist-esm/samples-dev/labelsCreateAndUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/labelsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/labelsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/labelsDeleteSample.js +40 -0
  15. package/dist-esm/samples-dev/labelsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/labelsGetByWorkspaceSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/labelsGetByWorkspaceSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/labelsGetByWorkspaceSample.js +40 -0
  19. package/dist-esm/samples-dev/labelsGetByWorkspaceSample.js.map +1 -0
  20. package/dist-esm/samples-dev/labelsListByWorkspaceSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/labelsListByWorkspaceSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/labelsListByWorkspaceSample.js +60 -0
  23. package/dist-esm/samples-dev/labelsListByWorkspaceSample.js.map +1 -0
  24. package/dist-esm/samples-dev/labelsUpdateSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/labelsUpdateSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/labelsUpdateSample.js +40 -0
  27. package/dist-esm/samples-dev/labelsUpdateSample.js.map +1 -0
  28. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/operationsListSample.js +58 -0
  31. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  32. package/dist-esm/samples-dev/tasksGetByWorkspaceSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/tasksGetByWorkspaceSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/tasksGetByWorkspaceSample.js +40 -0
  35. package/dist-esm/samples-dev/tasksGetByWorkspaceSample.js.map +1 -0
  36. package/dist-esm/samples-dev/workspacesCreateAndUpdateSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/workspacesCreateAndUpdateSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/workspacesCreateAndUpdateSample.js +43 -0
  39. package/dist-esm/samples-dev/workspacesCreateAndUpdateSample.js.map +1 -0
  40. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/workspacesDeleteSample.js +39 -0
  43. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -0
  44. package/dist-esm/samples-dev/workspacesGetSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/workspacesGetSample.js +39 -0
  47. package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -0
  48. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +59 -0
  51. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -0
  52. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +58 -0
  55. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -0
  56. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/workspacesUpdateSample.js +39 -0
  59. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -0
  60. package/dist-esm/src/easmMgmtClient.d.ts +23 -0
  61. package/dist-esm/src/easmMgmtClient.d.ts.map +1 -0
  62. package/dist-esm/src/easmMgmtClient.js +103 -0
  63. package/dist-esm/src/easmMgmtClient.js.map +1 -0
  64. package/dist-esm/src/index.d.ts +6 -0
  65. package/dist-esm/src/index.d.ts.map +1 -0
  66. package/dist-esm/src/index.js +13 -0
  67. package/dist-esm/src/index.js.map +1 -0
  68. package/dist-esm/src/lroImpl.d.ts +11 -0
  69. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  70. package/dist-esm/src/lroImpl.js +21 -0
  71. package/dist-esm/src/lroImpl.js.map +1 -0
  72. package/dist-esm/src/models/index.d.ts +492 -0
  73. package/dist-esm/src/models/index.d.ts.map +1 -0
  74. package/dist-esm/src/models/index.js +66 -0
  75. package/dist-esm/src/models/index.js.map +1 -0
  76. package/dist-esm/src/models/mappers.d.ts +23 -0
  77. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  78. package/dist-esm/src/models/mappers.js +574 -0
  79. package/dist-esm/src/models/mappers.js.map +1 -0
  80. package/dist-esm/src/models/parameters.d.ts +16 -0
  81. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  82. package/dist-esm/src/models/parameters.js +137 -0
  83. package/dist-esm/src/models/parameters.js.map +1 -0
  84. package/dist-esm/src/operations/index.d.ts +5 -0
  85. package/dist-esm/src/operations/index.d.ts.map +1 -0
  86. package/dist-esm/src/operations/index.js +12 -0
  87. package/dist-esm/src/operations/index.js.map +1 -0
  88. package/dist-esm/src/operations/labels.d.ts +87 -0
  89. package/dist-esm/src/operations/labels.d.ts.map +1 -0
  90. package/dist-esm/src/operations/labels.js +395 -0
  91. package/dist-esm/src/operations/labels.js.map +1 -0
  92. package/dist-esm/src/operations/operations.d.ts +32 -0
  93. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operations/operations.js +138 -0
  95. package/dist-esm/src/operations/operations.js.map +1 -0
  96. package/dist-esm/src/operations/tasks.d.ts +21 -0
  97. package/dist-esm/src/operations/tasks.d.ts.map +1 -0
  98. package/dist-esm/src/operations/tasks.js +55 -0
  99. package/dist-esm/src/operations/tasks.js.map +1 -0
  100. package/dist-esm/src/operations/workspaces.d.ts +96 -0
  101. package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
  102. package/dist-esm/src/operations/workspaces.js +496 -0
  103. package/dist-esm/src/operations/workspaces.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  105. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  107. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/labels.d.ts +62 -0
  109. package/dist-esm/src/operationsInterfaces/labels.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/labels.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/labels.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  113. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/tasks.d.ts +13 -0
  117. package/dist-esm/src/operationsInterfaces/tasks.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/tasks.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/tasks.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +60 -0
  121. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
  124. package/dist-esm/src/pagingHelper.d.ts +13 -0
  125. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  126. package/dist-esm/src/pagingHelper.js +32 -0
  127. package/dist-esm/src/pagingHelper.js.map +1 -0
  128. package/dist-esm/test/defendereasm_operations_test.spec.d.ts +4 -0
  129. package/dist-esm/test/defendereasm_operations_test.spec.d.ts.map +1 -0
  130. package/dist-esm/test/defendereasm_operations_test.spec.js +120 -0
  131. package/dist-esm/test/defendereasm_operations_test.spec.js.map +1 -0
  132. package/package.json +123 -0
  133. package/review/arm-defendereasm.api.md +400 -0
  134. package/rollup.config.js +122 -0
  135. package/src/easmMgmtClient.ts +151 -0
  136. package/src/index.ts +13 -0
  137. package/src/lroImpl.ts +42 -0
  138. package/src/models/index.ts +562 -0
  139. package/src/models/mappers.ts +639 -0
  140. package/src/models/parameters.ts +161 -0
  141. package/src/operations/index.ts +12 -0
  142. package/src/operations/labels.ts +543 -0
  143. package/src/operations/operations.ts +149 -0
  144. package/src/operations/tasks.ts +75 -0
  145. package/src/operations/workspaces.ts +625 -0
  146. package/src/operationsInterfaces/index.ts +12 -0
  147. package/src/operationsInterfaces/labels.ts +120 -0
  148. package/src/operationsInterfaces/operations.ts +22 -0
  149. package/src/operationsInterfaces/tasks.ts +29 -0
  150. package/src/operationsInterfaces/workspaces.ts +114 -0
  151. package/src/pagingHelper.ts +39 -0
  152. package/tsconfig.json +33 -0
  153. package/types/arm-defendereasm.d.ts +724 -0
  154. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,120 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
+ import {
12
+ LabelResource,
13
+ LabelsListByWorkspaceOptionalParams,
14
+ LabelsGetByWorkspaceOptionalParams,
15
+ LabelsGetByWorkspaceResponse,
16
+ LabelsCreateAndUpdateOptionalParams,
17
+ LabelsCreateAndUpdateResponse,
18
+ LabelsUpdateOptionalParams,
19
+ LabelsUpdateResponse,
20
+ LabelsDeleteOptionalParams
21
+ } from "../models";
22
+
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Interface representing a Labels. */
25
+ export interface Labels {
26
+ /**
27
+ * Returns a list of labels in the given workspace.
28
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
29
+ * @param workspaceName The name of the Workspace.
30
+ * @param options The options parameters.
31
+ */
32
+ listByWorkspace(
33
+ resourceGroupName: string,
34
+ workspaceName: string,
35
+ options?: LabelsListByWorkspaceOptionalParams
36
+ ): PagedAsyncIterableIterator<LabelResource>;
37
+ /**
38
+ * Returns a label in the given workspace.
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
+ * @param workspaceName The name of the Workspace.
41
+ * @param labelName The name of the Label.
42
+ * @param options The options parameters.
43
+ */
44
+ getByWorkspace(
45
+ resourceGroupName: string,
46
+ workspaceName: string,
47
+ labelName: string,
48
+ options?: LabelsGetByWorkspaceOptionalParams
49
+ ): Promise<LabelsGetByWorkspaceResponse>;
50
+ /**
51
+ * Create or update a Label.
52
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
53
+ * @param workspaceName The name of the Workspace.
54
+ * @param labelName The name of the Label.
55
+ * @param options The options parameters.
56
+ */
57
+ beginCreateAndUpdate(
58
+ resourceGroupName: string,
59
+ workspaceName: string,
60
+ labelName: string,
61
+ options?: LabelsCreateAndUpdateOptionalParams
62
+ ): Promise<
63
+ SimplePollerLike<
64
+ OperationState<LabelsCreateAndUpdateResponse>,
65
+ LabelsCreateAndUpdateResponse
66
+ >
67
+ >;
68
+ /**
69
+ * Create or update a Label.
70
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
71
+ * @param workspaceName The name of the Workspace.
72
+ * @param labelName The name of the Label.
73
+ * @param options The options parameters.
74
+ */
75
+ beginCreateAndUpdateAndWait(
76
+ resourceGroupName: string,
77
+ workspaceName: string,
78
+ labelName: string,
79
+ options?: LabelsCreateAndUpdateOptionalParams
80
+ ): Promise<LabelsCreateAndUpdateResponse>;
81
+ /**
82
+ * Update a Label.
83
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
84
+ * @param workspaceName The name of the Workspace.
85
+ * @param labelName The name of the Label.
86
+ * @param options The options parameters.
87
+ */
88
+ update(
89
+ resourceGroupName: string,
90
+ workspaceName: string,
91
+ labelName: string,
92
+ options?: LabelsUpdateOptionalParams
93
+ ): Promise<LabelsUpdateResponse>;
94
+ /**
95
+ * Delete a Label.
96
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
97
+ * @param workspaceName The name of the Workspace.
98
+ * @param labelName The name of the Label.
99
+ * @param options The options parameters.
100
+ */
101
+ beginDelete(
102
+ resourceGroupName: string,
103
+ workspaceName: string,
104
+ labelName: string,
105
+ options?: LabelsDeleteOptionalParams
106
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
107
+ /**
108
+ * Delete a Label.
109
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
110
+ * @param workspaceName The name of the Workspace.
111
+ * @param labelName The name of the Label.
112
+ * @param options The options parameters.
113
+ */
114
+ beginDeleteAndWait(
115
+ resourceGroupName: string,
116
+ workspaceName: string,
117
+ labelName: string,
118
+ options?: LabelsDeleteOptionalParams
119
+ ): Promise<void>;
120
+ }
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Operation, OperationsListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Operations. */
14
+ export interface Operations {
15
+ /**
16
+ * Returns list of operations.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: OperationsListOptionalParams
21
+ ): PagedAsyncIterableIterator<Operation>;
22
+ }
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import {
10
+ TasksGetByWorkspaceOptionalParams,
11
+ TasksGetByWorkspaceResponse
12
+ } from "../models";
13
+
14
+ /** Interface representing a Tasks. */
15
+ export interface Tasks {
16
+ /**
17
+ * Returns a task in the given workspace.
18
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
19
+ * @param workspaceName The name of the Workspace.
20
+ * @param taskId The id of the Task.
21
+ * @param options The options parameters.
22
+ */
23
+ getByWorkspace(
24
+ resourceGroupName: string,
25
+ workspaceName: string,
26
+ taskId: string,
27
+ options?: TasksGetByWorkspaceOptionalParams
28
+ ): Promise<TasksGetByWorkspaceResponse>;
29
+ }
@@ -0,0 +1,114 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
+ import {
12
+ WorkspaceResource,
13
+ WorkspacesListBySubscriptionOptionalParams,
14
+ WorkspacesListByResourceGroupOptionalParams,
15
+ WorkspacesGetOptionalParams,
16
+ WorkspacesGetResponse,
17
+ WorkspacesCreateAndUpdateOptionalParams,
18
+ WorkspacesCreateAndUpdateResponse,
19
+ WorkspacesUpdateOptionalParams,
20
+ WorkspacesUpdateResponse,
21
+ WorkspacesDeleteOptionalParams
22
+ } from "../models";
23
+
24
+ /// <reference lib="esnext.asynciterable" />
25
+ /** Interface representing a Workspaces. */
26
+ export interface Workspaces {
27
+ /**
28
+ * Returns a list of workspaces under the given subscription.
29
+ * @param options The options parameters.
30
+ */
31
+ listBySubscription(
32
+ options?: WorkspacesListBySubscriptionOptionalParams
33
+ ): PagedAsyncIterableIterator<WorkspaceResource>;
34
+ /**
35
+ * Returns a list of workspaces in the given resource group.
36
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
37
+ * @param options The options parameters.
38
+ */
39
+ listByResourceGroup(
40
+ resourceGroupName: string,
41
+ options?: WorkspacesListByResourceGroupOptionalParams
42
+ ): PagedAsyncIterableIterator<WorkspaceResource>;
43
+ /**
44
+ * Returns a workspace with the given name.
45
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
46
+ * @param workspaceName The name of the Workspace.
47
+ * @param options The options parameters.
48
+ */
49
+ get(
50
+ resourceGroupName: string,
51
+ workspaceName: string,
52
+ options?: WorkspacesGetOptionalParams
53
+ ): Promise<WorkspacesGetResponse>;
54
+ /**
55
+ * Create or update a Workspace.
56
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
57
+ * @param workspaceName The name of the Workspace.
58
+ * @param options The options parameters.
59
+ */
60
+ beginCreateAndUpdate(
61
+ resourceGroupName: string,
62
+ workspaceName: string,
63
+ options?: WorkspacesCreateAndUpdateOptionalParams
64
+ ): Promise<
65
+ SimplePollerLike<
66
+ OperationState<WorkspacesCreateAndUpdateResponse>,
67
+ WorkspacesCreateAndUpdateResponse
68
+ >
69
+ >;
70
+ /**
71
+ * Create or update a Workspace.
72
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
73
+ * @param workspaceName The name of the Workspace.
74
+ * @param options The options parameters.
75
+ */
76
+ beginCreateAndUpdateAndWait(
77
+ resourceGroupName: string,
78
+ workspaceName: string,
79
+ options?: WorkspacesCreateAndUpdateOptionalParams
80
+ ): Promise<WorkspacesCreateAndUpdateResponse>;
81
+ /**
82
+ * Update a Workspace.
83
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
84
+ * @param workspaceName The name of the Workspace.
85
+ * @param options The options parameters.
86
+ */
87
+ update(
88
+ resourceGroupName: string,
89
+ workspaceName: string,
90
+ options?: WorkspacesUpdateOptionalParams
91
+ ): Promise<WorkspacesUpdateResponse>;
92
+ /**
93
+ * Delete a Workspace.
94
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
95
+ * @param workspaceName The name of the Workspace.
96
+ * @param options The options parameters.
97
+ */
98
+ beginDelete(
99
+ resourceGroupName: string,
100
+ workspaceName: string,
101
+ options?: WorkspacesDeleteOptionalParams
102
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
103
+ /**
104
+ * Delete a Workspace.
105
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
106
+ * @param workspaceName The name of the Workspace.
107
+ * @param options The options parameters.
108
+ */
109
+ beginDeleteAndWait(
110
+ resourceGroupName: string,
111
+ workspaceName: string,
112
+ options?: WorkspacesDeleteOptionalParams
113
+ ): Promise<void>;
114
+ }
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ export interface PageInfo {
10
+ continuationToken?: string;
11
+ }
12
+
13
+ const pageMap = new WeakMap<object, PageInfo>();
14
+
15
+ /**
16
+ * Given the last `.value` produced by the `byPage` iterator,
17
+ * returns a continuation token that can be used to begin paging from
18
+ * that point later.
19
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
20
+ * @returns The continuation token that can be passed into byPage() during future calls.
21
+ */
22
+ export function getContinuationToken(page: unknown): string | undefined {
23
+ if (typeof page !== "object" || page === null) {
24
+ return undefined;
25
+ }
26
+ return pageMap.get(page)?.continuationToken;
27
+ }
28
+
29
+ export function setContinuationToken(
30
+ page: unknown,
31
+ continuationToken: string | undefined
32
+ ): void {
33
+ if (typeof page !== "object" || page === null || !continuationToken) {
34
+ return;
35
+ }
36
+ const pageInfo = pageMap.get(page) ?? {};
37
+ pageInfo.continuationToken = continuationToken;
38
+ pageMap.set(page, pageInfo);
39
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "es6",
4
+ "moduleResolution": "node",
5
+ "strict": true,
6
+ "target": "es6",
7
+ "sourceMap": true,
8
+ "declarationMap": true,
9
+ "esModuleInterop": true,
10
+ "allowSyntheticDefaultImports": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "lib": [
13
+ "es6",
14
+ "dom"
15
+ ],
16
+ "declaration": true,
17
+ "outDir": "./dist-esm",
18
+ "importHelpers": true,
19
+ "paths": {
20
+ "@azure/arm-defendereasm": [
21
+ "./src/index"
22
+ ]
23
+ }
24
+ },
25
+ "include": [
26
+ "./src/**/*.ts",
27
+ "./test/**/*.ts",
28
+ "samples-dev/**/*.ts"
29
+ ],
30
+ "exclude": [
31
+ "node_modules"
32
+ ]
33
+ }