@api-client/core 0.8.2 → 0.8.4

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 (108) hide show
  1. package/build/src/amf/AmfMixin.d.ts +1 -1
  2. package/build/src/amf/definitions/Api.d.ts +6 -6
  3. package/build/src/amf/definitions/Shapes.d.ts +2 -2
  4. package/build/src/amf/models/AmfDataNode.d.ts +1 -1
  5. package/build/src/cookies/CookieParser.d.ts +1 -1
  6. package/build/src/lib/parsers/UrlProcessor.d.ts +1 -1
  7. package/build/src/lib/transformers/PayloadSerializer.d.ts +3 -3
  8. package/build/src/mocking/LegacyInterfaces.d.ts +1 -1
  9. package/build/src/models/Authorization.d.ts +3 -3
  10. package/build/src/models/ClientCertificate.d.ts +4 -4
  11. package/build/src/models/HttpCookie.d.ts +2 -2
  12. package/build/src/models/ProjectItem.d.ts +1 -1
  13. package/build/src/models/Property.d.ts +1 -1
  14. package/build/src/models/data/DataNamespace.d.ts +1 -1
  15. package/build/src/models/data/DataProperty.d.ts +2 -2
  16. package/build/src/models/legacy/actions/Actions.d.ts +5 -5
  17. package/build/src/models/legacy/authorization/Authorization.d.ts +2 -2
  18. package/build/src/models/store/Backend.d.ts +2 -2
  19. package/build/src/models/store/Permission.d.ts +3 -3
  20. package/build/src/models/transformers/PostmanTransformer.d.ts +1 -1
  21. package/build/src/models/transformers/PostmanV21Transformer.d.ts +1 -1
  22. package/build/src/models/transformers/har.d.ts +1 -1
  23. package/build/src/runtime/http-runner/HttpFlowRunner.d.ts +1 -1
  24. package/build/src/runtime/node/ProjectParallelRunner.d.ts +1 -1
  25. package/build/src/runtime/node/ProjectRunner.d.ts +1 -1
  26. package/build/src/runtime/store/FilesSdk.d.ts +1 -1
  27. package/data/apis/APIC-483/APIC-483.raml +16 -0
  28. package/data/apis/APIC-483/example/list-of-bank-succ.json +32 -0
  29. package/data/apis/APIC-483/schema/response-retrieve-list-bank.json +68 -0
  30. package/data/apis/arc-demo-api/arc-demo-api.raml +468 -0
  31. package/data/apis/arc-demo-api/examples/e400.xml +4 -0
  32. package/data/apis/arc-demo-api/examples/e401.xml +4 -0
  33. package/data/apis/arc-demo-api/examples/e404.xml +4 -0
  34. package/data/apis/arc-demo-api/examples/image.xml +5 -0
  35. package/data/apis/arc-demo-api/examples/messages-example.json +22 -0
  36. package/data/apis/arc-demo-api/examples/messages-sent-example.json +15 -0
  37. package/data/apis/arc-demo-api/examples/person.json +14 -0
  38. package/data/apis/arc-demo-api/examples/person.url.encoded +1 -0
  39. package/data/apis/arc-demo-api/examples/person.xml +14 -0
  40. package/data/apis/arc-demo-api/examples/product.xml +9 -0
  41. package/data/apis/arc-demo-api/library.raml +36 -0
  42. package/data/apis/arc-demo-api/resourceTypes/app-person.raml +49 -0
  43. package/data/apis/arc-demo-api/resourceTypes/example-types.raml +45 -0
  44. package/data/apis/arc-demo-api/resourceTypes/image.raml +23 -0
  45. package/data/apis/arc-demo-api/resourceTypes/message-sent-type.raml +23 -0
  46. package/data/apis/arc-demo-api/resourceTypes/message-type.raml +33 -0
  47. package/data/apis/arc-demo-api/resourceTypes/product.raml +52 -0
  48. package/data/apis/arc-demo-api/resourceTypes/resource.raml +11 -0
  49. package/data/apis/arc-demo-api/schemas/error-response.xsd +11 -0
  50. package/data/apis/arc-demo-api/schemas/image.xsd +11 -0
  51. package/data/apis/arc-demo-api/schemas/person.json +104 -0
  52. package/data/apis/arc-demo-api/schemas/person.xsd +26 -0
  53. package/data/apis/arc-demo-api/schemas/product.xsd +17 -0
  54. package/data/apis/arc-demo-api/securitySchemes/basic.raml +5 -0
  55. package/data/apis/arc-demo-api/securitySchemes/oauth_2_0.raml +29 -0
  56. package/data/apis/arc-demo-api/securitySchemes/x-custom.raml +26 -0
  57. package/data/apis/arc-demo-api/traits/adminable.raml +23 -0
  58. package/data/apis/arc-demo-api/traits/pagination.raml +83 -0
  59. package/data/apis/arc-demo-api/traits/rate-limited.raml +9 -0
  60. package/data/apis/oas-3-api/oas-3-api.yaml +356 -0
  61. package/data/apis/petstore/petstore.yaml +954 -0
  62. package/data/apis/secured-api/oauth-2-custom-settings.raml +143 -0
  63. package/data/apis/secured-api/oauth2-header-delivery.raml +13 -0
  64. package/data/apis/secured-api/oauth2-no-delivery.raml +8 -0
  65. package/data/apis/secured-api/oauth2-no-grants.raml +12 -0
  66. package/data/apis/secured-api/oauth2-pkce.raml +13 -0
  67. package/data/apis/secured-api/oauth2-query-delivery.raml +13 -0
  68. package/data/apis/secured-api/oauth_1_0.raml +8 -0
  69. package/data/apis/secured-api/oauth_1_0_no-settings.raml +3 -0
  70. package/data/apis/secured-api/oauth_1_0_no-signature.raml +7 -0
  71. package/data/apis/secured-api/oauth_1_0_signature.raml +8 -0
  72. package/data/apis/secured-api/passthrough-querystring.raml +16 -0
  73. package/data/apis/secured-api/passthrough.raml +24 -0
  74. package/data/apis/secured-api/secured-api.raml +231 -0
  75. package/data/apis/secured-api/x-custom.raml +33 -0
  76. package/data/apis/secured-api/x-other.raml +29 -0
  77. package/data/apis/secured-api/x-query-string.raml +16 -0
  78. package/data/model.js +5 -0
  79. package/data/models/APIC-187.json +13 -3
  80. package/data/models/APIC-188.json +13 -3
  81. package/data/models/APIC-233.json +1 -1
  82. package/data/models/APIC-391.json +23 -2
  83. package/data/models/APIC-483.json +3088 -0
  84. package/data/models/APIC-487.json +1 -1
  85. package/data/models/APIC-655.json +21 -1
  86. package/data/models/APIC-689.json +21 -1
  87. package/data/models/APIC-690.json +5 -5
  88. package/data/models/SE-10469.json +11 -1
  89. package/data/models/SE-13092.json +35 -5
  90. package/data/models/SE-22063.json +22 -2
  91. package/data/models/amf-helper-api.json +740 -42
  92. package/data/models/arc-demo-api.json +52994 -0
  93. package/data/models/async-api.json +86 -36
  94. package/data/models/example-generator-api.json +280 -10
  95. package/data/models/expanded-api.json +1 -1
  96. package/data/models/flattened-api.json +1 -1
  97. package/data/models/multiple-servers.json +1 -1
  98. package/data/models/oas-3-api.json +10534 -0
  99. package/data/models/oas-date.json +1 -1
  100. package/data/models/oas-types.json +1 -1
  101. package/data/models/oas-unions.json +31 -1
  102. package/data/models/petstore.json +27477 -0
  103. package/data/models/raml-date.json +11 -1
  104. package/data/models/recursive.json +1 -1
  105. package/data/models/schema-api.json +84 -4
  106. package/data/models/secured-api.json +19067 -0
  107. package/data/models/tracked-to-linked.json +88 -4
  108. package/package.json +3 -3
@@ -41,7 +41,7 @@ export interface ServerQueryOptions {
41
41
  */
42
42
  id?: string;
43
43
  }
44
- declare type Constructor<T = {}> = new (...args: any[]) => T;
44
+ type Constructor<T = {}> = new (...args: any[]) => T;
45
45
  export declare class AmfMixinInterface {
46
46
  amf?: IAmfDocument;
47
47
  _amf?: IAmfDocument;
@@ -1,6 +1,6 @@
1
1
  import { IApiDomainProperty } from "./Base.js";
2
2
  import { IApiDataExample, IApiDataNode, IApiDataNodeUnion, IShapeUnion } from "./Shapes.js";
3
- export declare type IScalarDataTypes = 'string' | 'base64Binary' | 'boolean' | 'date' | 'dateTime' | 'double' | 'float' | 'integer' | 'long' | 'number' | 'time';
3
+ export type IScalarDataTypes = 'string' | 'base64Binary' | 'boolean' | 'date' | 'dateTime' | 'double' | 'float' | 'integer' | 'long' | 'number' | 'time';
4
4
  export interface IApiSummary extends IApiDomainProperty {
5
5
  name?: string;
6
6
  description?: string;
@@ -182,7 +182,7 @@ export interface IApiSecurityOpenIdConnectSettings extends IApiSecuritySettings
182
182
  url?: string;
183
183
  sourceMaps?: IApiDocumentSourceMaps;
184
184
  }
185
- export declare type IApiSecuritySettingsUnion = IApiSecuritySettings | IApiSecurityOAuth1Settings | IApiSecurityOAuth2Settings | IApiSecurityApiKeySettings | IApiSecurityHttpSettings | IApiSecurityOpenIdConnectSettings;
185
+ export type IApiSecuritySettingsUnion = IApiSecuritySettings | IApiSecurityOAuth1Settings | IApiSecurityOAuth2Settings | IApiSecurityApiKeySettings | IApiSecurityHttpSettings | IApiSecurityOpenIdConnectSettings;
186
186
  export interface IApiSecurityOAuth2Flow extends IApiDomainProperty {
187
187
  authorizationUri?: string;
188
188
  accessTokenUri?: string;
@@ -304,8 +304,8 @@ export interface IShapeProcessingOptions {
304
304
  * - `custom`: custom base URI value (entered by the user)
305
305
  * - `extra`: an application controlled server value selected by the user.
306
306
  */
307
- export declare type IServerType = 'server' | 'custom' | 'extra';
308
- export declare type ISelectionType = 'summary' | 'resource' | 'operation' | 'schema' | 'security' | 'documentation';
307
+ export type IServerType = 'server' | 'custom' | 'extra';
308
+ export type ISelectionType = 'summary' | 'resource' | 'operation' | 'schema' | 'security' | 'documentation';
309
309
  /**
310
310
  * API navigation layout options.
311
311
  *
@@ -314,7 +314,7 @@ export declare type ISelectionType = 'summary' | 'resource' | 'operation' | 'sch
314
314
  * - natural-sort - as `natural` but endpoints are sorted by name.
315
315
  * - off (or none) - just like in the API spec.
316
316
  */
317
- export declare type INavigationLayout = 'tree' | 'natural' | 'natural-sort' | 'off';
317
+ export type INavigationLayout = 'tree' | 'natural' | 'natural-sort' | 'off';
318
318
  export interface ISelectableMenuItem {
319
319
  /**
320
320
  * Whether the item is a selected menu item.
@@ -378,4 +378,4 @@ export interface ISecurityItem extends IApiSecuritySchemeListItem, ISelectableMe
378
378
  }
379
379
  export interface IDocumentationItem extends IApiDocumentation, ISelectableMenuItem, IEditableMenuItem {
380
380
  }
381
- export declare type ISchemaAddType = 'scalar' | 'object' | 'file' | 'array' | 'union';
381
+ export type ISchemaAddType = 'scalar' | 'object' | 'file' | 'array' | 'union';
@@ -1,6 +1,6 @@
1
1
  import { IApiDocumentation, IApiDocumentSourceMaps } from './Api.js';
2
2
  import { IApiDomainProperty } from './Base.js';
3
- export declare type IShapeUnion = IApiScalarShape | IApiNodeShape | IApiUnionShape | IApiFileShape | IApiSchemaShape | IApiAnyShape | IApiArrayShape | IApiTupleShape | IApiRecursiveShape;
3
+ export type IShapeUnion = IApiScalarShape | IApiNodeShape | IApiUnionShape | IApiFileShape | IApiSchemaShape | IApiAnyShape | IApiArrayShape | IApiTupleShape | IApiRecursiveShape;
4
4
  export interface IApiAssociationShape {
5
5
  /**
6
6
  * This is custom property not available in AMF and used with data associations.
@@ -306,4 +306,4 @@ export interface IApiScalarNode extends IApiDataNode {
306
306
  export interface IApiArrayNode extends IApiDataNode {
307
307
  members: IApiDataNodeUnion[];
308
308
  }
309
- export declare type IApiDataNodeUnion = IApiDataNode | IApiObjectNode | IApiScalarNode | IApiArrayNode;
309
+ export type IApiDataNodeUnion = IApiDataNode | IApiObjectNode | IApiScalarNode | IApiArrayNode;
@@ -1,6 +1,6 @@
1
1
  import { IApiCustomDomainProperty } from '../definitions/Base.js';
2
2
  import { IApiDataNodeUnion } from '../definitions/Shapes.js';
3
- export declare type IDataNodeInit = 'scalar' | 'object' | 'array';
3
+ export type IDataNodeInit = 'scalar' | 'object' | 'array';
4
4
  /**
5
5
  * A class that manipulates the AMF's DataNode node.
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import { HttpCookie } from '../models/HttpCookie.js';
2
- export declare type SameSiteValue = 'Lax' | 'Strict' | 'None';
2
+ export type SameSiteValue = 'Lax' | 'Strict' | 'None';
3
3
  /**
4
4
  * A class that parses the `set-cookie` header string to a list of cookies.
5
5
  */
@@ -130,7 +130,7 @@ export interface IUrlExpandOptions {
130
130
  */
131
131
  strict?: boolean;
132
132
  }
133
- export declare type UrlPart = IUrlPart | IUrlParamPart | IUrlExpressionPart;
133
+ export type UrlPart = IUrlPart | IUrlParamPart | IUrlExpressionPart;
134
134
  export declare class UrlSearchParams {
135
135
  /**
136
136
  * A reference to the URL processor's parts.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
- export declare type PayloadTypes = 'string' | 'file' | 'blob' | 'buffer' | 'arraybuffer' | 'formdata' | 'x-www-form-urlencoded';
3
- export declare type DeserializedPayload = string | Blob | File | FormData | Buffer | ArrayBuffer | undefined;
2
+ export type PayloadTypes = 'string' | 'file' | 'blob' | 'buffer' | 'arraybuffer' | 'formdata' | 'x-www-form-urlencoded';
3
+ export type DeserializedPayload = string | Blob | File | FormData | Buffer | ArrayBuffer | undefined;
4
4
  export declare const SupportedPayloadTypes: PayloadTypes[];
5
5
  export interface IMultipartBody {
6
6
  /**
@@ -80,7 +80,7 @@ export interface ISafePayload {
80
80
  * A Buffer / ArrayBuffer is stored as type 'buffer' / 'arraybuffer' respectively
81
81
  * with the `data` being an UInt8Array of the content.
82
82
  */
83
- export declare type Payload = string | ISafePayload;
83
+ export type Payload = string | ISafePayload;
84
84
  export declare class PayloadSerializer {
85
85
  /**
86
86
  * Checked whether the passed payload can be safely stored in the data store.
@@ -1,5 +1,5 @@
1
1
  import { IDataMockInit, IHarTimingInit, IHttpResponseRedirectStatusInit } from '@pawel-up/data-mock';
2
- export declare type ArcDataMockInit = IDataMockInit;
2
+ export type ArcDataMockInit = IDataMockInit;
3
3
  export interface VariableInit {
4
4
  defaultEnv?: boolean;
5
5
  randomEnv?: boolean;
@@ -246,7 +246,7 @@ export interface IOAuth2Authorization extends IBaseOAuth2Authorization {
246
246
  */
247
247
  deviceCode?: string;
248
248
  }
249
- export declare type OAuth2DeliveryMethod = 'header' | 'query' | 'body';
249
+ export type OAuth2DeliveryMethod = 'header' | 'query' | 'body';
250
250
  /**
251
251
  * Options for removing the OAuth 2 token from the cache.
252
252
  */
@@ -445,6 +445,6 @@ export interface IPassThroughAuthorization {
445
445
  */
446
446
  export interface IRamlCustomAuthorization extends IPassThroughAuthorization {
447
447
  }
448
- export declare type IAuthorizationSettingsUnion = IBasicAuthorization | IBearerAuthorization | INtlmAuthorization | IDigestAuthorization | IOAuth1Authorization | IOAuth2Authorization | ICCAuthorization | IApiKeyAuthorization | IPassThroughAuthorization | IRamlCustomAuthorization | IOidcAuthorization;
449
- export declare type AuthorizationType = 'basic' | 'bearer' | 'ntlm' | 'digest' | 'oauth 1' | 'oauth 2' | 'client certificate' | 'api key' | 'pass through' | 'raml custom' | 'open id';
448
+ export type IAuthorizationSettingsUnion = IBasicAuthorization | IBearerAuthorization | INtlmAuthorization | IDigestAuthorization | IOAuth1Authorization | IOAuth2Authorization | ICCAuthorization | IApiKeyAuthorization | IPassThroughAuthorization | IRamlCustomAuthorization | IOidcAuthorization;
449
+ export type AuthorizationType = 'basic' | 'bearer' | 'ntlm' | 'digest' | 'oauth 1' | 'oauth 2' | 'client certificate' | 'api key' | 'pass through' | 'raml custom' | 'open id';
450
450
  export {};
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
2
  import { ARCCertificateIndex, RequestCertificate } from './legacy/models/ClientCertificate.js';
3
- export declare type CertificateType = 'p12' | 'pem';
3
+ export type CertificateType = 'p12' | 'pem';
4
4
  export declare const Kind = "Core#Certificate";
5
- export declare type CertificateDataFormat = string | ArrayBuffer | Buffer | Uint8Array;
5
+ export type CertificateDataFormat = string | ArrayBuffer | Buffer | Uint8Array;
6
6
  /**
7
7
  * Represents a single certificate object (cert/key)
8
8
  */
@@ -62,7 +62,7 @@ export interface IPemCertificate extends ICertificate {
62
62
  */
63
63
  certKey: ICertificateData;
64
64
  }
65
- export declare type HttpCertificate = IP12Certificate | IPemCertificate | ICertificate;
65
+ export type HttpCertificate = IP12Certificate | IPemCertificate | ICertificate;
66
66
  export interface IPemCreateOptions {
67
67
  type: 'p12';
68
68
  /**
@@ -97,7 +97,7 @@ export interface IP12CreateOptions {
97
97
  */
98
98
  passphrase?: string;
99
99
  }
100
- export declare type ICertificateCreateOptions = IPemCreateOptions | IP12CreateOptions;
100
+ export type ICertificateCreateOptions = IPemCreateOptions | IP12CreateOptions;
101
101
  /**
102
102
  * A class that represents a certificate in the system
103
103
  */
@@ -1,6 +1,6 @@
1
1
  import { ARCCookie as LegacyARCCookie } from './legacy/models/Cookies.js';
2
- export declare type CookieSameSiteType = 'unspecified' | 'no_restriction' | 'lax' | 'strict';
3
- export declare type CookieChangeReason = 'explicit' | 'overwrite' | 'expired' | 'evicted' | 'expired-overwrite';
2
+ export type CookieSameSiteType = 'unspecified' | 'no_restriction' | 'lax' | 'strict';
3
+ export type CookieChangeReason = 'explicit' | 'overwrite' | 'expired' | 'evicted' | 'expired-overwrite';
4
4
  export interface IElectronCookie {
5
5
  name: string;
6
6
  value: string;
@@ -3,7 +3,7 @@ import { Kind as ProjectRequestKind, ProjectRequest } from './ProjectRequest.js'
3
3
  import { Kind as EnvironmentKind, Environment } from './Environment.js';
4
4
  import { HttpProject } from './HttpProject.js';
5
5
  import { IAppProjectItem } from './AppProject.js';
6
- declare type Kind = typeof ProjectFolderKind | typeof ProjectRequestKind | typeof EnvironmentKind;
6
+ type Kind = typeof ProjectFolderKind | typeof ProjectRequestKind | typeof EnvironmentKind;
7
7
  export interface IProjectItem {
8
8
  /**
9
9
  * The kind of the item.
@@ -1,5 +1,5 @@
1
1
  import { ApiType } from './legacy/models/ApiTypes.js';
2
- export declare type PropertyType = 'string' | 'integer' | 'float' | 'nil' | 'boolean' | 'date' | 'datetime' | 'time' | 'int32' | 'int64' | 'uint32' | 'uint64' | 'sint32' | 'sint64' | 'fixed32' | 'fixed64' | 'sfixed32' | 'sfixed64' | 'double' | 'bytes';
2
+ export type PropertyType = 'string' | 'integer' | 'float' | 'nil' | 'boolean' | 'date' | 'datetime' | 'time' | 'int32' | 'int64' | 'uint32' | 'uint64' | 'sint32' | 'sint64' | 'fixed32' | 'fixed64' | 'sfixed32' | 'sfixed64' | 'double' | 'bytes';
3
3
  export interface IProperty {
4
4
  kind: typeof Kind;
5
5
  /**
@@ -4,7 +4,7 @@ import { IDataEntity, DataEntity } from "./DataEntity.js";
4
4
  import { IDataModel, DataModel, Kind as DataModelKind } from "./DataModel.js";
5
5
  import { IDataProperty, DataProperty } from "./DataProperty.js";
6
6
  export declare const Kind = "Core#DataNamespace";
7
- declare type ItemKind = typeof Kind | typeof DataModelKind;
7
+ type ItemKind = typeof Kind | typeof DataModelKind;
8
8
  interface IDataDefinitions {
9
9
  models?: IDataModel[];
10
10
  entities?: IDataEntity[];
@@ -2,7 +2,7 @@ import { IThing, Thing } from "../Thing.js";
2
2
  import { DataNamespace } from "./DataNamespace.js";
3
3
  import { IApiPropertyShape } from "../../amf/definitions/Shapes.js";
4
4
  import { IPropertyBindings, IPropertySchema } from './Bindings.js';
5
- export declare type DataPropertyType = 'string' | 'number' | 'integer' | 'nil' | 'boolean' | 'date' | 'datetime' | 'time' | 'any' | 'binary';
5
+ export type DataPropertyType = 'string' | 'number' | 'integer' | 'nil' | 'boolean' | 'date' | 'datetime' | 'time' | 'any' | 'binary';
6
6
  export declare const DataPropertyTypes: DataPropertyType[];
7
7
  export declare enum DataPropertyList {
8
8
  string = "string",
@@ -16,7 +16,7 @@ export declare enum DataPropertyList {
16
16
  any = "any",
17
17
  file = "binary"
18
18
  }
19
- export declare type DateFormat = 'rfc3339' | 'rfc2616';
19
+ export type DateFormat = 'rfc3339' | 'rfc2616';
20
20
  export declare const DateFormats: DateFormat[];
21
21
  export declare enum DateFormatList {
22
22
  /**
@@ -1,4 +1,4 @@
1
- export declare type ActionType = 'request' | 'response';
1
+ export type ActionType = 'request' | 'response';
2
2
  /**
3
3
  * A base interface describing a configuration to extract data from a request or a response.
4
4
  * @deprecated
@@ -139,7 +139,7 @@ export interface Action {
139
139
  * Convenience type that gathers all configurations in one type.
140
140
  * @deprecated
141
141
  */
142
- export declare type ActionConfiguration = SetCookieConfig | SetVariableConfig | DeleteCookieConfig;
142
+ export type ActionConfiguration = SetCookieConfig | SetVariableConfig | DeleteCookieConfig;
143
143
  /**
144
144
  * @deprecated
145
145
  */
@@ -236,15 +236,15 @@ export interface IteratorConfiguration {
236
236
  /**
237
237
  * @deprecated
238
238
  */
239
- export declare type OperatorEnum = "equal" | "not-equal" | "greater-than" | "greater-than-equal" | "less-than" | "less-than-equal" | "contains" | "regex";
239
+ export type OperatorEnum = "equal" | "not-equal" | "greater-than" | "greater-than-equal" | "less-than" | "less-than-equal" | "contains" | "regex";
240
240
  /**
241
241
  * @deprecated
242
242
  */
243
- export declare type RequestDataSourceEnum = "url" | "method" | "headers" | "body";
243
+ export type RequestDataSourceEnum = "url" | "method" | "headers" | "body";
244
244
  /**
245
245
  * @deprecated
246
246
  */
247
- export declare type ResponseDataSourceEnum = "url" | "status" | "headers" | "body";
247
+ export type ResponseDataSourceEnum = "url" | "status" | "headers" | "body";
248
248
  /**
249
249
  * An UI controlling configuration for an action.
250
250
  * @deprecated
@@ -306,7 +306,7 @@ export interface OAuth2Authorization extends BaseOAuth2Authorization {
306
306
  /**
307
307
  * @deprecated
308
308
  */
309
- export declare type OAuth2DeliveryMethod = 'header' | 'query' | 'body';
309
+ export type OAuth2DeliveryMethod = 'header' | 'query' | 'body';
310
310
  /**
311
311
  * Options for removing the OAuth 2 token from the cache.
312
312
  * @deprecated
@@ -536,5 +536,5 @@ export interface RamlCustomAuthorization extends PassThroughAuthorization {
536
536
  /**
537
537
  * @deprecated
538
538
  */
539
- export declare type AuthorizationSettingsUnion = LegacyAuth | BasicAuthorization | BearerAuthorization | NtlmAuthorization | DigestAuthorization | OAuth1Authorization | OAuth2Authorization | CCAuthorization | ApiKeyAuthorization | PassThroughAuthorization | RamlCustomAuthorization;
539
+ export type AuthorizationSettingsUnion = LegacyAuth | BasicAuthorization | BearerAuthorization | NtlmAuthorization | DigestAuthorization | OAuth1Authorization | OAuth2Authorization | CCAuthorization | ApiKeyAuthorization | PassThroughAuthorization | RamlCustomAuthorization;
540
540
  export {};
@@ -1,6 +1,6 @@
1
1
  import { JsonPatch } from '@api-client/json';
2
2
  import { AccessOperation } from './Permission.js';
3
- export declare type BackendMode = 'single-user' | 'multi-user';
3
+ export type BackendMode = 'single-user' | 'multi-user';
4
4
  export interface IBackendInfo {
5
5
  /**
6
6
  * The model the store is on.
@@ -196,7 +196,7 @@ export interface ICursorOptions {
196
196
  /**
197
197
  * Listing options for the HTTP history.
198
198
  */
199
- export declare type HistoryListOptions = IHistorySpaceListOptions | IHistoryProjectListOptions | IHistoryRequestListOptions | IHistoryUserListOptions | IHistoryAppListOptions;
199
+ export type HistoryListOptions = IHistorySpaceListOptions | IHistoryProjectListOptions | IHistoryRequestListOptions | IHistoryUserListOptions | IHistoryAppListOptions;
200
200
  /**
201
201
  * Query options to list history for a user space.
202
202
  * The user has to have access to the user space to read / create / delete the history.
@@ -1,6 +1,6 @@
1
1
  export declare const Kind = "Core#Permission";
2
- export declare type PermissionType = 'user' | 'group' | 'anyone';
3
- export declare type PermissionRole = 'owner' | 'reader' | 'commenter' | 'writer';
2
+ export type PermissionType = 'user' | 'group' | 'anyone';
3
+ export type PermissionRole = 'owner' | 'reader' | 'commenter' | 'writer';
4
4
  interface IBasePermission {
5
5
  /**
6
6
  * The type of the permission.
@@ -207,5 +207,5 @@ export interface IAccessAddOperation extends IAccessOperation {
207
207
  export interface IAccessRemoveOperation extends IAccessOperation {
208
208
  op: "remove";
209
209
  }
210
- export declare type AccessOperation = IAccessAddOperation | IAccessRemoveOperation;
210
+ export type AccessOperation = IAccessAddOperation | IAccessRemoveOperation;
211
211
  export {};
@@ -17,7 +17,7 @@ export declare function variablesReplacerFunction(match: string, value: string):
17
17
  */
18
18
  export declare function paramValue(input: string): string;
19
19
  export declare const dataValue: unique symbol;
20
- export declare type PostmanImportLogLevel = 'error' | 'warning' | 'info';
20
+ export type PostmanImportLogLevel = 'error' | 'warning' | 'info';
21
21
  export interface PostmanImportLog {
22
22
  type: PostmanImportLogLevel;
23
23
  message: string;
@@ -32,7 +32,7 @@ interface PostmanParameter {
32
32
  disabled?: boolean;
33
33
  description?: string;
34
34
  }
35
- declare type PostmanHeader = PostmanParameter;
35
+ type PostmanHeader = PostmanParameter;
36
36
  interface PostmanUrlEncoded extends PostmanParameter {
37
37
  type?: string;
38
38
  }
@@ -655,7 +655,7 @@ export interface QueryString {
655
655
  *
656
656
  * http://www.softwareishard.com/blog/har-12-spec/#postData
657
657
  */
658
- export declare type PostData = PostDataCommon & (PostDataParams | PostDataText);
658
+ export type PostData = PostDataCommon & (PostDataParams | PostDataText);
659
659
  /**
660
660
  * The common properties of PostData
661
661
  */
@@ -4,7 +4,7 @@ import { ISentRequest } from "../../models/SentRequest.js";
4
4
  import { IResponse } from "../../models/Response.js";
5
5
  import { IErrorResponse } from "../../models/ErrorResponse.js";
6
6
  import { IActionStep, IDeleteCookieStep, IHttpAction, IHttpActionFlow, IHttpCondition, IReadDataStep, ISetCookieStep, ISetDataStep, ISetVariableStep } from '../../models/http-actions/HttpActions.js';
7
- declare type FlowValue = string | number | boolean | null | undefined;
7
+ type FlowValue = string | number | boolean | null | undefined;
8
8
  export declare class HttpFlowRunner {
9
9
  /**
10
10
  * The cumulative list of all variables to be applied to the request and other properties.
@@ -6,7 +6,7 @@ import { IProjectExecutionLog } from '../reporters/Reporter.js';
6
6
  import { BaseRunner } from './BaseRunner.js';
7
7
  import { State } from './enums.js';
8
8
  import { IProjectParallelRunnerOptions } from './InteropInterfaces.js';
9
- export declare type WorkerStatus = 'initializing' | 'ready' | 'running' | 'finished' | 'error';
9
+ export type WorkerStatus = 'initializing' | 'ready' | 'running' | 'finished' | 'error';
10
10
  export interface IWorkerInfo {
11
11
  /**
12
12
  * Whether the worker is online.
@@ -9,7 +9,7 @@ import { BaseRunner } from './BaseRunner.js';
9
9
  import { IProjectRunnerOptions, IRequestRunnerOptions } from './InteropInterfaces.js';
10
10
  import { State } from './enums.js';
11
11
  import { AppProject, AppProjectFolder } from '../../models/AppProject.js';
12
- declare type ProjectParent = HttpProject | ProjectFolder | AppProject | AppProjectFolder;
12
+ type ProjectParent = HttpProject | ProjectFolder | AppProject | AppProjectFolder;
13
13
  export interface ProjectRunner {
14
14
  /**
15
15
  * Event dispatched when an iteration is about to start.
@@ -22,7 +22,7 @@ export interface IMediaCreateOptions {
22
22
  }
23
23
  export interface IFileCreateOptions extends IMetaCreateOptions, IMediaCreateOptions {
24
24
  }
25
- export declare type ListFileKind = typeof ProjectKind | typeof WorkspaceKind | typeof DataNamespaceKind;
25
+ export type ListFileKind = typeof ProjectKind | typeof WorkspaceKind | typeof DataNamespaceKind;
26
26
  /**
27
27
  * In the store, the file is represented by the meta and the media.
28
28
  *
@@ -0,0 +1,16 @@
1
+ #%RAML 1.0
2
+ title: Retrieve List of Bank
3
+ description: |
4
+ Bank Paynet API
5
+ mediaType:
6
+ - application/json
7
+ baseUri: api/bank/prc/{version}
8
+ version: v1
9
+
10
+ /banks:
11
+ post:
12
+ displayName: Retrieve Bank Paynet
13
+ body:
14
+ application/json:
15
+ type: !include schema/response-retrieve-list-bank.json
16
+ example: !include example/list-of-bank-succ.json
@@ -0,0 +1,32 @@
1
+ {
2
+ "banks": [{
3
+ "id": "BANKAMYKL",
4
+ "name": "Bank A",
5
+ "status": "A",
6
+ "urlList": [
7
+ {
8
+ "urlType": "RET",
9
+ "urlValue": "https://www.bank-a.com.my/retail/checkout/info",
10
+ "applicationId": "com.merchanta.app"
11
+ },
12
+ {
13
+ "urlType": "CORP",
14
+ "urlValue": "https://www.bank-a.com.my/corp/checkout/info",
15
+ "applicationId": "com.merchanta.app"
16
+ }
17
+ ]
18
+ },
19
+ {
20
+ "id": "MERAMYKL",
21
+ "name": "Merchant Buffet",
22
+ "status": "A",
23
+ "urlList": [
24
+ {
25
+ "urlType": "RET",
26
+ "urlValue": "https://www.buffetnotarealurl.com.my/checkout/info",
27
+ "applicationId": "com.buffet.app"
28
+ }
29
+ ]
30
+
31
+ }]
32
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "banks": {
6
+ "type": "array",
7
+ "items": [
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "id": {
12
+ "type": "string",
13
+ "description":"Bank/Merchant Id (BIC code)",
14
+ "maxLength":35
15
+ },
16
+ "name": {
17
+ "type": "string",
18
+ "description":"Bank/Merchant Name",
19
+ "maxLength":35
20
+ },
21
+ "status": {
22
+ "type": "string",
23
+ "description":"Bank/Merchant Active/Inactive Status. Can have one of the values 'A'=Active, or 'I'=Inactive)",
24
+ "maxLength":35
25
+ },
26
+ "urlList": {
27
+ "type": "array",
28
+ "items": [
29
+ {
30
+ "type": "object",
31
+ "properties": {
32
+ "urlType": {
33
+ "type": "string",
34
+ "description":"URL Type. Used where participant may have more than one Redirect URL. Example Corporate and Retail redirect URL 1)RET= Retail 2)COR= Corporate",
35
+ "maxLength":3
36
+ },
37
+ "urlValue": {
38
+ "type": "string",
39
+ "description":"URL Value",
40
+ "maxLength":140
41
+ },
42
+ "applicationId": {
43
+ "type": "string",
44
+ "description":"Bank Application Id",
45
+ "maxLength":140
46
+ }
47
+ },
48
+ "required": [
49
+ "urlType",
50
+ "urlValue"
51
+ ]
52
+ }
53
+ ]
54
+ }
55
+ },
56
+ "required": [
57
+ "id",
58
+ "name",
59
+ "urlList"
60
+ ]
61
+ }
62
+ ]
63
+ }
64
+ },
65
+ "required": [
66
+ "banks"
67
+ ]
68
+ }