@servicenow/sdk-build-plugins 2.0.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 (166) hide show
  1. package/dist/AttachmentPlugin.d.ts +253 -0
  2. package/dist/AttachmentPlugin.js +216 -0
  3. package/dist/AttachmentPlugin.js.map +1 -0
  4. package/dist/BusinessRulePlugin.d.ts +56 -0
  5. package/dist/BusinessRulePlugin.js +171 -0
  6. package/dist/BusinessRulePlugin.js.map +1 -0
  7. package/dist/CrossScopePrivilegePlugin.d.ts +22 -0
  8. package/dist/CrossScopePrivilegePlugin.js +42 -0
  9. package/dist/CrossScopePrivilegePlugin.js.map +1 -0
  10. package/dist/DefaultPlugin.d.ts +71 -0
  11. package/dist/DefaultPlugin.js +238 -0
  12. package/dist/DefaultPlugin.js.map +1 -0
  13. package/dist/IdPlugin.d.ts +17 -0
  14. package/dist/IdPlugin.js +45 -0
  15. package/dist/IdPlugin.js.map +1 -0
  16. package/dist/ListPlugin.d.ts +91 -0
  17. package/dist/ListPlugin.js +398 -0
  18. package/dist/ListPlugin.js.map +1 -0
  19. package/dist/PropertyPlugin.d.ts +122 -0
  20. package/dist/PropertyPlugin.js +165 -0
  21. package/dist/PropertyPlugin.js.map +1 -0
  22. package/dist/ScriptTemplatePlugin.d.ts +31 -0
  23. package/dist/ScriptTemplatePlugin.js +208 -0
  24. package/dist/ScriptTemplatePlugin.js.map +1 -0
  25. package/dist/UserPreferencePlugin.d.ts +16 -0
  26. package/dist/UserPreferencePlugin.js +30 -0
  27. package/dist/UserPreferencePlugin.js.map +1 -0
  28. package/dist/aclAndRole/AclPlugin.d.ts +117 -0
  29. package/dist/aclAndRole/AclPlugin.js +285 -0
  30. package/dist/aclAndRole/AclPlugin.js.map +1 -0
  31. package/dist/aclAndRole/RolePlugin.d.ts +58 -0
  32. package/dist/aclAndRole/RolePlugin.js +152 -0
  33. package/dist/aclAndRole/RolePlugin.js.map +1 -0
  34. package/dist/aclAndRole/Util.d.ts +3 -0
  35. package/dist/aclAndRole/Util.js +106 -0
  36. package/dist/aclAndRole/Util.js.map +1 -0
  37. package/dist/app/ApplicationMenuPlugin.d.ts +32 -0
  38. package/dist/app/ApplicationMenuPlugin.js +106 -0
  39. package/dist/app/ApplicationMenuPlugin.js.map +1 -0
  40. package/dist/atf/ATFComposer.d.ts +492 -0
  41. package/dist/atf/ATFComposer.js +2717 -0
  42. package/dist/atf/ATFComposer.js.map +1 -0
  43. package/dist/atf/TestPlugin.d.ts +31 -0
  44. package/dist/atf/TestPlugin.js +95 -0
  45. package/dist/atf/TestPlugin.js.map +1 -0
  46. package/dist/atf/index.d.ts +1 -0
  47. package/dist/atf/index.js +9 -0
  48. package/dist/atf/index.js.map +1 -0
  49. package/dist/db/ColumnPlugins.d.ts +278 -0
  50. package/dist/db/ColumnPlugins.js +112 -0
  51. package/dist/db/ColumnPlugins.js.map +1 -0
  52. package/dist/db/RecordPlugin.d.ts +208 -0
  53. package/dist/db/RecordPlugin.js +287 -0
  54. package/dist/db/RecordPlugin.js.map +1 -0
  55. package/dist/db/TablePlugin.d.ts +742 -0
  56. package/dist/db/TablePlugin.js +1249 -0
  57. package/dist/db/TablePlugin.js.map +1 -0
  58. package/dist/db/index.d.ts +3 -0
  59. package/dist/db/index.js +27 -0
  60. package/dist/db/index.js.map +1 -0
  61. package/dist/index.d.ts +16 -0
  62. package/dist/index.js +51 -0
  63. package/dist/index.js.map +1 -0
  64. package/dist/scriptedRESTAPI/RESTDeserializationUtils.d.ts +12 -0
  65. package/dist/scriptedRESTAPI/RESTDeserializationUtils.js +371 -0
  66. package/dist/scriptedRESTAPI/RESTDeserializationUtils.js.map +1 -0
  67. package/dist/scriptedRESTAPI/RESTSerializationUtils.d.ts +15 -0
  68. package/dist/scriptedRESTAPI/RESTSerializationUtils.js +177 -0
  69. package/dist/scriptedRESTAPI/RESTSerializationUtils.js.map +1 -0
  70. package/dist/scriptedRESTAPI/RestApiPlugin.d.ts +144 -0
  71. package/dist/scriptedRESTAPI/RestApiPlugin.js +318 -0
  72. package/dist/scriptedRESTAPI/RestApiPlugin.js.map +1 -0
  73. package/dist/scriptedRESTAPI/RestSchemaUtils.d.ts +190 -0
  74. package/dist/scriptedRESTAPI/RestSchemaUtils.js +53 -0
  75. package/dist/scriptedRESTAPI/RestSchemaUtils.js.map +1 -0
  76. package/dist/scriptedRESTAPI/RestUtils.d.ts +75 -0
  77. package/dist/scriptedRESTAPI/RestUtils.js +469 -0
  78. package/dist/scriptedRESTAPI/RestUtils.js.map +1 -0
  79. package/dist/scripts/ClientScriptPlugin.d.ts +43 -0
  80. package/dist/scripts/ClientScriptPlugin.js +190 -0
  81. package/dist/scripts/ClientScriptPlugin.js.map +1 -0
  82. package/dist/scripts/scriptUtils.d.ts +15 -0
  83. package/dist/scripts/scriptUtils.js +83 -0
  84. package/dist/scripts/scriptUtils.js.map +1 -0
  85. package/dist/uxf/ExperiencePlugin.d.ts +22 -0
  86. package/dist/uxf/ExperiencePlugin.js +55 -0
  87. package/dist/uxf/ExperiencePlugin.js.map +1 -0
  88. package/dist/uxf/RoutesPlugin.d.ts +22 -0
  89. package/dist/uxf/RoutesPlugin.js +176 -0
  90. package/dist/uxf/RoutesPlugin.js.map +1 -0
  91. package/dist/uxf/UxfFormulaParser/cleanUxValue.d.ts +4 -0
  92. package/dist/uxf/UxfFormulaParser/cleanUxValue.js +65 -0
  93. package/dist/uxf/UxfFormulaParser/cleanUxValue.js.map +1 -0
  94. package/dist/uxf/UxfFormulaParser/grammerParser/api.d.ts +189 -0
  95. package/dist/uxf/UxfFormulaParser/grammerParser/api.js +158 -0
  96. package/dist/uxf/UxfFormulaParser/grammerParser/api.js.map +1 -0
  97. package/dist/uxf/UxfFormulaParser/grammerParser/clientTransformMap.d.ts +13 -0
  98. package/dist/uxf/UxfFormulaParser/grammerParser/clientTransformMap.js +604 -0
  99. package/dist/uxf/UxfFormulaParser/grammerParser/clientTransformMap.js.map +1 -0
  100. package/dist/uxf/UxfFormulaParser/grammerParser/grammarParser.d.ts +12 -0
  101. package/dist/uxf/UxfFormulaParser/grammerParser/grammarParser.js +551 -0
  102. package/dist/uxf/UxfFormulaParser/grammerParser/grammarParser.js.map +1 -0
  103. package/dist/uxf/UxfFormulaParser/grammerParser/spanHelpers.d.ts +31 -0
  104. package/dist/uxf/UxfFormulaParser/grammerParser/spanHelpers.js +64 -0
  105. package/dist/uxf/UxfFormulaParser/grammerParser/spanHelpers.js.map +1 -0
  106. package/dist/uxf/UxfFormulaParser/index.d.ts +3 -0
  107. package/dist/uxf/UxfFormulaParser/index.js +11 -0
  108. package/dist/uxf/UxfFormulaParser/index.js.map +1 -0
  109. package/dist/uxf/UxfFormulaParser/parser.d.ts +8 -0
  110. package/dist/uxf/UxfFormulaParser/parser.js +87 -0
  111. package/dist/uxf/UxfFormulaParser/parser.js.map +1 -0
  112. package/dist/uxf/UxfFormulaParser/utils/getErrorMsg.d.ts +8 -0
  113. package/dist/uxf/UxfFormulaParser/utils/getErrorMsg.js +17 -0
  114. package/dist/uxf/UxfFormulaParser/utils/getErrorMsg.js.map +1 -0
  115. package/dist/uxf/constants.d.ts +2 -0
  116. package/dist/uxf/constants.js +8 -0
  117. package/dist/uxf/constants.js.map +1 -0
  118. package/dist/uxf/index.d.ts +2 -0
  119. package/dist/uxf/index.js +11 -0
  120. package/dist/uxf/index.js.map +1 -0
  121. package/dist/uxf/tectonicIdGenerator.d.ts +12 -0
  122. package/dist/uxf/tectonicIdGenerator.js +102 -0
  123. package/dist/uxf/tectonicIdGenerator.js.map +1 -0
  124. package/license +9 -0
  125. package/package.json +42 -0
  126. package/src/AttachmentPlugin.ts +262 -0
  127. package/src/BusinessRulePlugin.ts +251 -0
  128. package/src/CrossScopePrivilegePlugin.ts +54 -0
  129. package/src/DefaultPlugin.ts +272 -0
  130. package/src/IdPlugin.ts +47 -0
  131. package/src/ListPlugin.ts +497 -0
  132. package/src/PropertyPlugin.ts +218 -0
  133. package/src/ScriptTemplatePlugin.ts +223 -0
  134. package/src/UserPreferencePlugin.ts +36 -0
  135. package/src/aclAndRole/AclPlugin.ts +410 -0
  136. package/src/aclAndRole/RolePlugin.ts +225 -0
  137. package/src/aclAndRole/Util.ts +104 -0
  138. package/src/app/ApplicationMenuPlugin.ts +158 -0
  139. package/src/atf/ATFComposer.ts +3356 -0
  140. package/src/atf/TestPlugin.ts +119 -0
  141. package/src/atf/index.ts +1 -0
  142. package/src/db/ColumnPlugins.ts +117 -0
  143. package/src/db/RecordPlugin.ts +391 -0
  144. package/src/db/TablePlugin.ts +1581 -0
  145. package/src/db/index.ts +3 -0
  146. package/src/index.ts +16 -0
  147. package/src/scriptedRESTAPI/RESTDeserializationUtils.ts +410 -0
  148. package/src/scriptedRESTAPI/RESTSerializationUtils.ts +227 -0
  149. package/src/scriptedRESTAPI/RestApiPlugin.ts +438 -0
  150. package/src/scriptedRESTAPI/RestSchemaUtils.ts +72 -0
  151. package/src/scriptedRESTAPI/RestUtils.ts +507 -0
  152. package/src/scripts/ClientScriptPlugin.ts +251 -0
  153. package/src/scripts/scriptUtils.ts +81 -0
  154. package/src/uxf/ExperiencePlugin.ts +64 -0
  155. package/src/uxf/RoutesPlugin.ts +215 -0
  156. package/src/uxf/UxfFormulaParser/cleanUxValue.ts +73 -0
  157. package/src/uxf/UxfFormulaParser/grammerParser/api.js +166 -0
  158. package/src/uxf/UxfFormulaParser/grammerParser/clientTransformMap.js +606 -0
  159. package/src/uxf/UxfFormulaParser/grammerParser/grammarParser.js +551 -0
  160. package/src/uxf/UxfFormulaParser/grammerParser/spanHelpers.js +65 -0
  161. package/src/uxf/UxfFormulaParser/index.ts +4 -0
  162. package/src/uxf/UxfFormulaParser/parser.ts +64 -0
  163. package/src/uxf/UxfFormulaParser/utils/getErrorMsg.ts +13 -0
  164. package/src/uxf/constants.ts +4 -0
  165. package/src/uxf/index.ts +2 -0
  166. package/src/uxf/tectonicIdGenerator.ts +81 -0
@@ -0,0 +1,492 @@
1
+ import { Data, Record, TableName } from '@servicenow/sdk-core/runtime/db';
2
+ import type { Role } from '@servicenow/sdk-core/runtime/app';
3
+ import { Context, InputObject } from '@servicenow/sdk-build-core';
4
+ import * as atf from '@servicenow/sdk-core/runtime/atf';
5
+ export declare function getRecordIdIfRecord(value: any, context: Context): string;
6
+ export declare function getRoleId(record: Role, context: Context): string;
7
+ export declare function getRecordId<T extends TableName>(record: Record<T>, context: Context): string;
8
+ export declare function isRecord(value: any): value is Record;
9
+ export declare function isRole(value: any): value is Role;
10
+ /**
11
+ * These functions will return record lists instead of the return type property specified in the interface. Hence the explicit any return
12
+ *
13
+ */
14
+ export declare class ATF implements atf.FlatATF {
15
+ test: Record<'sys_atf_test'>;
16
+ /**
17
+ * Do not modify directly. Let TestPlugin handle incrementing the value
18
+ */
19
+ private order;
20
+ /**
21
+ * Do not manipulate directly in step functions. Instead create helper creation functions that increment this value
22
+ *
23
+ * Modified in the following locations:
24
+ * ```typescript
25
+ * function createStepRecord
26
+ * function _createGemRecords
27
+ * function _createVariableValueRecord
28
+ * ```
29
+ */
30
+ _records: {
31
+ [stepRecord: string]: Record[];
32
+ };
33
+ /**
34
+ * Used to access previously created steps based on index. Do not manipulate directly unless you are sure of what you are doing
35
+ *
36
+ * Modified in the following locations:
37
+ * ```typescript
38
+ * createStepRecord
39
+ * ```
40
+ */
41
+ stepRecords: Record<'sys_atf_step'>[];
42
+ private context;
43
+ constructor(inputObject: InputObject & {
44
+ name: string;
45
+ description: string;
46
+ active: boolean;
47
+ failOnServerError: boolean;
48
+ }, context: Context);
49
+ /**
50
+ * DO NOT CALL DIRECTLY
51
+ * Unless you know what you are doing do not handle setting the order number. It is handled by TestPlugin
52
+ */
53
+ incrementOrder(): void;
54
+ private parseValue;
55
+ private isTemplateStr;
56
+ /**
57
+ * Determines if gem is used at all in this value or down the nested object. If gem is used it is required to use sys_element_mapping in addition to sys_variable_value
58
+ */
59
+ private containsGem;
60
+ /**
61
+ *
62
+ * @param value Any value
63
+ * @returns whether the value is a gem mapping from an output variable
64
+ */
65
+ private isGem;
66
+ private createStepRecord;
67
+ /**
68
+ * All records: test, step, or metadata, which are necessary for the test
69
+ */
70
+ get records(): {
71
+ [stepRecord: string]: Record[];
72
+ };
73
+ private _createGemRecords;
74
+ /**
75
+ * Use createVariable instead unless you have good reason to use this
76
+ * @param props
77
+ * @returns
78
+ */
79
+ private _createVariableValueRecord;
80
+ private fieldValuesToQuery;
81
+ private recordListToString;
82
+ /**
83
+ * Outputs a string value which is either standard_ui or the sys_id of the form view
84
+ */
85
+ private parseFormUI;
86
+ private extractSysIdIfRecord;
87
+ private secondsToDuration;
88
+ private nameValuePairProcessing;
89
+ private createVariable;
90
+ openExistingRecord(inputs: {
91
+ formUI: atf.FormUIType;
92
+ view: string;
93
+ recordId: string | Record;
94
+ table: TableName;
95
+ selectedTabIndex: number;
96
+ }): void;
97
+ openNewForm(inputs: {
98
+ table: TableName;
99
+ view: string;
100
+ formUI: atf.FormUIType;
101
+ }): void;
102
+ fieldValueValidation<T extends TableName>(inputs: {
103
+ table: T;
104
+ conditions: string;
105
+ formUI: atf.FormUIType;
106
+ }): void;
107
+ setFieldValue<T extends TableName>(inputs: {
108
+ table: T;
109
+ fieldValues: Partial<Data<T>>;
110
+ formUI: atf.FormUIType;
111
+ }): void;
112
+ submitForm(inputs: {
113
+ assertType: atf.AssertType;
114
+ formUI: atf.FormUIType;
115
+ }): any;
116
+ validateOutboundEmailGeneratedByNotification(inputs: {
117
+ sourceNotification: string | Record<'sysevent_email_action'>;
118
+ conditions: string;
119
+ }): any;
120
+ recordUpdate<T extends TableName>(inputs: {
121
+ assertType: atf.AssertUpdateType;
122
+ enforceSecurity: boolean;
123
+ table: T;
124
+ recordId: string | Record<T>;
125
+ fieldValues: Partial<Data<T>>;
126
+ }): any;
127
+ generateRandomString(inputs: {
128
+ length: number;
129
+ }): any;
130
+ uiActionVisibility<T extends TableName>(inputs: {
131
+ formUI: atf.FormUIType;
132
+ table: T;
133
+ visible: (string | Record<'sys_ui_action'>)[];
134
+ notVisible: (string | Record<'sys_ui_action'>)[];
135
+ }): any;
136
+ validatePriceAndRecurringPrice(inputs: {
137
+ price: string | number;
138
+ recurringPrice: string | number;
139
+ frequency: atf.FrequencyType;
140
+ }): any;
141
+ assertResponseJSONPayloadIsValid(inputs: {
142
+ [name: string]: never;
143
+ }): any;
144
+ clickModalButton(inputs: {
145
+ formUI: atf.FormUIType;
146
+ uiPage: string | Record<'sys_ui_page'>;
147
+ assertType: atf.AssertModalType;
148
+ button: string;
149
+ assertTimeout: number;
150
+ }): any;
151
+ addItemToShoppingCart(inputs: {
152
+ assert: atf.AssertShoppingType;
153
+ }): any;
154
+ moduleVisibility(inputs: {
155
+ navigator: atf.NavigatorType;
156
+ assertNotVisible: atf.AssertModuleNotVisibleType;
157
+ notVisibleModules: (string | Record<'sys_app_module'>)[];
158
+ assertVisible: atf.AssertModuleVisibleType;
159
+ visibleModules: (string | Record<'sys_app_module'>)[];
160
+ }): any;
161
+ impersonate(inputs: {
162
+ user: string | Record<'sys_user'>;
163
+ }): any;
164
+ openRecordProducer(inputs: {
165
+ catalogItem: string | Record<'sc_cat_item_producer'>;
166
+ }): any;
167
+ recordValidation<T extends TableName>(inputs: {
168
+ enforceSecurity: boolean;
169
+ assertType: atf.AssertRecordValidationType;
170
+ table: T;
171
+ recordId: string | Record;
172
+ fieldValues: string;
173
+ }): any;
174
+ setCatalogItemQuantity(inputs: {
175
+ quantity: number | string;
176
+ }): any;
177
+ orderCatalogItem(inputs: {
178
+ assertType: atf.AssertOrderCatalogItemType;
179
+ }): any;
180
+ clickDeclarativeAction<T extends TableName>(inputs: {
181
+ formUI: atf.FormUIType;
182
+ table: T;
183
+ declarativeAction: string | Record<'sys_declarative_action_assignment'>;
184
+ assertType: atf.AssertDeclarativeActionType;
185
+ }): any;
186
+ assertXMLResponsePayloadElement(inputs: {
187
+ elementPath: string;
188
+ responseOperation: atf.ResponseValueOperationType;
189
+ elementValue: string;
190
+ }): any;
191
+ responsiveDashboardVisibility(inputs: {
192
+ dashboard: string | Record<'pa_dashboards'>;
193
+ assertType: atf.AssertResponsiveDashboardType;
194
+ }): any;
195
+ generateInboundReplyEmail<T extends TableName>(inputs: {
196
+ targetRecord: string | Record<T>;
197
+ subject: string;
198
+ body: string;
199
+ targetTable: T;
200
+ from: string;
201
+ to: string;
202
+ }): any;
203
+ assertStatusCodeName(inputs: {
204
+ responseOperation: atf.ResponseOperationValueType;
205
+ codeName: string;
206
+ }): any;
207
+ clickUIAction(inputs: {
208
+ formUI: atf.FormUIType;
209
+ table: TableName;
210
+ actionType: atf.UIActionType;
211
+ declarativeAction: string | Record<'sys_declarative_action_assignment'>;
212
+ uiAction: string | Record<'sys_ui_action'>;
213
+ assertType: atf.UIActionAssertType;
214
+ }): any;
215
+ createUser(inputs: {
216
+ fieldValues: Partial<Data<'sys_user'>>;
217
+ groups: (string | Record<'sys_user_group'>)[];
218
+ roles: (string | Role)[];
219
+ impersonate: boolean;
220
+ firstName: string;
221
+ lastName: string;
222
+ }): any;
223
+ recordDelete<T extends TableName>(inputs: {
224
+ enforceSecurity: boolean;
225
+ assertType: atf.RecordDeleteAssertType;
226
+ table: T;
227
+ recordId: string | Record<T>;
228
+ }): any;
229
+ openCatalogItem(inputs: {
230
+ catalogItem: string | Record<'sc_cat_item'>;
231
+ }): any;
232
+ setVariableValue(inputs: {
233
+ catalogItem: string | Record<'sc_cat_item'> | Record<'sc_cat_item_producer'>;
234
+ variableValues: string;
235
+ }): any;
236
+ sendRestRequest(inputs: {
237
+ basicAuthentication: string | Record<'sys_auth_profile_basic'>;
238
+ method: atf.HTTPMethodType;
239
+ path: string;
240
+ queryParameters: atf.QueryParam;
241
+ headers: {
242
+ [name: string]: string | number | boolean;
243
+ };
244
+ body: string;
245
+ }): any;
246
+ assertStatusCode(inputs: {
247
+ operation: atf.RestStatusOperationType;
248
+ statusCode: number;
249
+ }): void;
250
+ assertResponseXMLPayloadIsWellFormed(inputs: {
251
+ [name: string]: never;
252
+ }): void;
253
+ responsiveDashboardSharing(inputs: {
254
+ dashboard: string | Record<'pa_dashboards'>;
255
+ assertType: atf.DashboardSharingAssertType;
256
+ }): void;
257
+ log(inputs: {
258
+ log: string;
259
+ }): void;
260
+ declarativeActionVisibility(inputs: {
261
+ formUI: atf.FormUIType;
262
+ table: TableName;
263
+ visible: (string | Record<'sys_declarative_action_assignment'>)[];
264
+ notVisible: (string | Record<'sys_declarative_action_assignment'>)[];
265
+ }): void;
266
+ navigateToModule(inputs: {
267
+ module: string | Record<'sys_app_module'>;
268
+ }): void;
269
+ applicationMenuVisibility(inputs: {
270
+ navigator: atf.NavigatorType;
271
+ visible: (string | Record<'sys_app_application'>)[];
272
+ assertVisible: atf.AssertApplicationVisibleType;
273
+ notVisible: (string | Record<'sys_app_application'>)[];
274
+ assertNotVisible: atf.AssertApplicationNotVisibleType;
275
+ }): void;
276
+ checkoutShoppingCart(inputs: {
277
+ assert: atf.AssertCartType;
278
+ requestedFor: string | Record<'sys_user'>;
279
+ deliveryAddress: string;
280
+ specialInstructions: string;
281
+ }): any;
282
+ submitRecordProducer(inputs: {
283
+ assert: atf.AssertProducerType;
284
+ }): any;
285
+ openRecordProducer_SP(inputs: {
286
+ portal: string | Record<'sp_portal'>;
287
+ page: string | Record<'sp_page'>;
288
+ recordProducer: string | Record<'sc_cat_item_producer'>;
289
+ queryParameters: atf.QueryParam;
290
+ }): void;
291
+ openOrderGuide_SP(inputs: {
292
+ portal: string | Record<'sp_portal'>;
293
+ page: string | Record<'sp_page'>;
294
+ orderGuide: string | Record<'sc_cat_item_guide'>;
295
+ queryParameters: atf.QueryParam;
296
+ }): any;
297
+ openForm_SP<T extends TableName>(inputs: {
298
+ portal: string | Record<'sp_portal'>;
299
+ page: string | Record<'sp_page'>;
300
+ table: T;
301
+ paramID: string | Record<T>;
302
+ view: string;
303
+ queryParameters: atf.QueryParam;
304
+ }): void;
305
+ openCatalogItem_SP(inputs: {
306
+ portal: string | Record<'sp_portal'>;
307
+ page: string | Record<'sp_page'>;
308
+ catItem: string | Record<'sc_cat_item'>;
309
+ queryParameters: atf.QueryParam;
310
+ }): void;
311
+ saveCurrentRowOfMultiRowVariableSet_SP(inputs: {
312
+ assert: atf.AssertMultiRowType;
313
+ }): void;
314
+ addRowToMultiRowVariableSet_SP(inputs: {
315
+ catItem: string | Record<'sc_cat_item'>;
316
+ variableSet: string | Record<'item_option_new_set'>;
317
+ }): void;
318
+ fieldStateValidation<T extends TableName>(inputs: {
319
+ formUI: atf.FormUIType;
320
+ table: T;
321
+ visible: (keyof Data<T> | atf.SomeOtherString)[];
322
+ notVisible: (keyof Data<T> | atf.SomeOtherString)[];
323
+ readOnly: (keyof Data<T> | atf.SomeOtherString)[];
324
+ notReadOnly: (keyof Data<T> | atf.SomeOtherString)[];
325
+ mandatory: (keyof Data<T> | atf.SomeOtherString)[];
326
+ notMandatory: (keyof Data<T> | atf.SomeOtherString)[];
327
+ }): void;
328
+ validateOutboundEmailGeneratedByFlow(inputs: {
329
+ sourceFlow: string | Record<'sys_hub_flow'>;
330
+ conditions: string;
331
+ }): void;
332
+ reportVisibility(inputs: {
333
+ report: string | Record<'sys_report'>;
334
+ assertType: atf.AssertReportVisibilityType;
335
+ }): void;
336
+ openServicePortalPage(inputs: {
337
+ portal: string | Record<'sp_portal'>;
338
+ page: string | Record<'sp_page'>;
339
+ queryParams: atf.QueryParam;
340
+ }): void;
341
+ recordQuery<T extends TableName>(inputs: {
342
+ enforceSecurity: boolean;
343
+ assertType: atf.AssertQueryType;
344
+ table: T;
345
+ fieldValues: string;
346
+ }): any;
347
+ generateInboundEmail(inputs: {
348
+ from: string;
349
+ to: string;
350
+ subject: string;
351
+ body: string;
352
+ }): any;
353
+ validateVariableValue(inputs: {
354
+ catalogItem: Record<'sc_cat_item'>;
355
+ catalogConditions: string;
356
+ }): void;
357
+ assertResponseTime(inputs: {
358
+ responseOperation: atf.ResponseConditionOperationType;
359
+ responseTime: number;
360
+ }): any;
361
+ assertJsonResponsePayloadElement(inputs: {
362
+ elementName: string;
363
+ operation: atf.AssertResponseOperationType;
364
+ elementValue: string;
365
+ }): any;
366
+ setVariableValue_SP(inputs: {
367
+ catItem: string | Record<'sc_cat_item'> | Record<'sc_cat_item_producer'>;
368
+ variableSet: string | Record<'item_option_new_set'>;
369
+ variableValues: string;
370
+ }): void;
371
+ validateVariableValue_SP(inputs: {
372
+ catItem: string | Record<'sc_cat_item'>;
373
+ variableSet: string | Record<'item_option_new_set'>;
374
+ variableValues: string;
375
+ }): void;
376
+ variableStateValidation_SP(inputs: {
377
+ catItem: string | Record<'sc_cat_item'>;
378
+ variableSet: string | Record<'item_option_new_set'>;
379
+ visible: string[];
380
+ notVisible: string[];
381
+ readonly: string[];
382
+ notReadonly: string[];
383
+ mandatory: string[];
384
+ notMandatory: string[];
385
+ }): void;
386
+ validatePriceAndRecurringPrice_SP(inputs: {
387
+ price: string | number;
388
+ recurringPrice: string | number;
389
+ frequency: atf.FrequencyType;
390
+ }): void;
391
+ navigatewithinOrderGuide_SP(inputs: {
392
+ guideStep: atf.GuideStepType;
393
+ assert: atf.AssertNavigate;
394
+ }): void;
395
+ setFieldValue_SP<T extends TableName>(inputs: {
396
+ table: T;
397
+ fieldValues: Partial<Data<T>>;
398
+ }): void;
399
+ setCatalogItemQuantity_SP(inputs: {
400
+ quantity: string | number;
401
+ }): void;
402
+ validateOrderGuideItem_SP(inputs: {
403
+ items: (string | Record<'sc_cat_item'>)[];
404
+ }): void;
405
+ reviewOrderGuideSummary_SP(inputs: {
406
+ items: (string | Record<'sc_cat_item'>)[];
407
+ price: string | number;
408
+ }): void;
409
+ fieldValueValidation_SP<T extends TableName>(inputs: {
410
+ table: T;
411
+ conditions: string;
412
+ }): void;
413
+ fieldStateValidation_SP<T extends TableName>(inputs: {
414
+ table: T;
415
+ visible: (keyof Data<T> | atf.SomeOtherString)[];
416
+ notVisible: (keyof Data<T> | atf.SomeOtherString)[];
417
+ mandatory: (keyof Data<T> | atf.SomeOtherString)[];
418
+ notMandatory: (keyof Data<T> | atf.SomeOtherString)[];
419
+ readonly: (keyof Data<T> | atf.SomeOtherString)[];
420
+ notReadonly: (keyof Data<T> | atf.SomeOtherString)[];
421
+ }): void;
422
+ uiActionVisibilityValidation_SP<T extends TableName>(inputs: {
423
+ table: T;
424
+ visible: (string | Record<'sys_ui_action'>)[];
425
+ notVisible: (string | Record<'sys_ui_action'>)[];
426
+ }): void;
427
+ reviewIteminOrderGuide_SP(inputs: {
428
+ item: string | Record<'sc_cat_item'>;
429
+ included: boolean;
430
+ }): void;
431
+ clickUIAction_SP<T extends TableName>(inputs: {
432
+ table: T;
433
+ uiAction: string | Record<'sys_ui_action'>;
434
+ assert: atf.AssertClickUIActionSP;
435
+ }): any;
436
+ submitForm_SP(inputs: {
437
+ assert: atf.AssertSubmitFormSP;
438
+ }): any;
439
+ addItemtoShoppingCart_SP(inputs: {
440
+ assert: atf.AssertAddItemToCartSP;
441
+ }): any;
442
+ addOrderGuidetoShoppingCart_SP(inputs: {
443
+ assert: atf.AssertAddOrderGuidetoShoppingCart_SP;
444
+ }): void;
445
+ submitOrderGuide_SP(inputs: {
446
+ assert: atf.AssertSubmitOrderGuideSP;
447
+ }): any;
448
+ submitRecordProducer_SP(inputs: {
449
+ assert: atf.AssertRecordProducerSubmitSP;
450
+ }): any;
451
+ orderCatalogItem_SP(inputs: {
452
+ assert: atf.AssertOrderCatalogItemSP;
453
+ }): any;
454
+ validateOutboundEmail(inputs: {
455
+ conditions: string;
456
+ }): void;
457
+ recordInsert<T extends TableName>(inputs: {
458
+ assertType: atf.AssertInsert;
459
+ enforceSecurity: boolean;
460
+ table: T;
461
+ fieldValues: Partial<Data<T>>;
462
+ }): any;
463
+ searchForCatalogItem(inputs: {
464
+ search_in_portal: boolean;
465
+ search_term: string;
466
+ catalog: string | Record<'sc_catalog'>;
467
+ category: string | Record<'sc_category'>;
468
+ assert_item: string | Record<'sc_cat_item'>;
469
+ assert_type: atf.AssertCatalogItem;
470
+ }): any;
471
+ replayRequestItem(inputs: {
472
+ request_item: string | Record<'sc_req_item'>;
473
+ }): any;
474
+ variableStateValidation(inputs: {
475
+ catalog_item: string | Record<'sc_cat_item'>;
476
+ visible: string[];
477
+ not_visible: string[];
478
+ read_only: string[];
479
+ not_read_only: string[];
480
+ mandatory: string[];
481
+ not_mandatory: string[];
482
+ }): void;
483
+ assertResponseHeader(inputs: {
484
+ header_name: string;
485
+ response_operation: atf.AssertResponseHeader;
486
+ header_value: string;
487
+ }): void;
488
+ assertResponsePayload(inputs: {
489
+ response_body: string;
490
+ response_operation: atf.AssertResponsePayload;
491
+ }): void;
492
+ }