@amp-labs/react 1.3.0 → 1.4.0

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 (101) hide show
  1. package/build/generated-sources/api/src/apis/APIKeyApi.d.ts +158 -0
  2. package/build/generated-sources/api/src/apis/APIKeyApi.js +188 -0
  3. package/build/generated-sources/api/src/apis/DestinationApi.d.ts +62 -8
  4. package/build/generated-sources/api/src/apis/DestinationApi.js +62 -3
  5. package/build/generated-sources/api/src/apis/OperationApi.d.ts +27 -1
  6. package/build/generated-sources/api/src/apis/OperationApi.js +27 -0
  7. package/build/generated-sources/api/src/apis/OperationEventApi.d.ts +84 -0
  8. package/build/generated-sources/api/src/apis/OperationEventApi.js +110 -0
  9. package/build/generated-sources/api/src/apis/ProviderApi.d.ts +78 -0
  10. package/build/generated-sources/api/src/apis/{OperationLogApi.js → ProviderApi.js} +33 -17
  11. package/build/generated-sources/api/src/apis/index.d.ts +3 -1
  12. package/build/generated-sources/api/src/apis/index.js +3 -1
  13. package/build/generated-sources/api/src/models/ApiKey.d.ts +49 -0
  14. package/build/generated-sources/api/src/models/ApiKey.js +59 -0
  15. package/build/generated-sources/api/src/models/ApiKeyRequest.d.ts +31 -0
  16. package/build/generated-sources/api/src/models/ApiKeyRequest.js +50 -0
  17. package/build/generated-sources/api/src/models/AuthType.d.ts +22 -0
  18. package/build/generated-sources/api/src/models/AuthType.js +35 -0
  19. package/build/generated-sources/api/src/models/CreateDestinationRequest.d.ts +44 -0
  20. package/build/generated-sources/api/src/models/CreateDestinationRequest.js +57 -0
  21. package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.d.ts +39 -0
  22. package/build/generated-sources/api/src/models/{DestinationMetadata.js → CreateDestinationRequestMetadata.js} +11 -11
  23. package/build/generated-sources/api/src/models/Destination.d.ts +22 -4
  24. package/build/generated-sources/api/src/models/Destination.js +12 -3
  25. package/build/generated-sources/api/src/models/{OperationLog.d.ts → Log.d.ts} +12 -12
  26. package/build/generated-sources/api/src/models/{OperationLog.js → Log.js} +11 -11
  27. package/build/generated-sources/api/src/models/OauthOpts.d.ts +56 -0
  28. package/build/generated-sources/api/src/models/OauthOpts.js +63 -0
  29. package/build/generated-sources/api/src/models/OperationEvent.d.ts +61 -0
  30. package/build/generated-sources/api/src/models/OperationEvent.js +64 -0
  31. package/build/generated-sources/api/src/models/PatchApiKeyRequest.d.ts +38 -0
  32. package/build/generated-sources/api/src/models/PatchApiKeyRequest.js +54 -0
  33. package/build/generated-sources/api/src/models/PatchApiKeyRequestApiKey.d.ts +37 -0
  34. package/build/generated-sources/api/src/models/PatchApiKeyRequestApiKey.js +52 -0
  35. package/build/generated-sources/api/src/models/ProviderInfo.d.ts +60 -0
  36. package/build/generated-sources/api/src/models/ProviderInfo.js +65 -0
  37. package/build/generated-sources/api/src/models/Support.d.ts +55 -0
  38. package/build/generated-sources/api/src/models/Support.js +62 -0
  39. package/build/generated-sources/api/src/models/TokenMetadataFields.d.ts +43 -0
  40. package/build/generated-sources/api/src/models/TokenMetadataFields.js +54 -0
  41. package/build/generated-sources/api/src/models/UpdateDestinationRequest.d.ts +38 -0
  42. package/build/generated-sources/api/src/models/UpdateDestinationRequest.js +54 -0
  43. package/build/generated-sources/api/src/models/UpdateDestinationRequestDestination.d.ts +38 -0
  44. package/build/generated-sources/api/src/models/UpdateDestinationRequestDestination.js +53 -0
  45. package/build/generated-sources/api/src/models/index.d.ts +15 -2
  46. package/build/generated-sources/api/src/models/index.js +15 -2
  47. package/build/src/components/Configure/actions/{createInstallationReducer.d.ts → mutateAndSetState/createInstallationAndSetState.d.ts} +3 -3
  48. package/build/src/components/Configure/actions/{createInstallationReducer.js → mutateAndSetState/createInstallationAndSetState.js} +4 -4
  49. package/build/src/components/Configure/actions/mutateAndSetState/updateInstallationAndSetState.d.ts +15 -0
  50. package/build/src/components/Configure/actions/mutateAndSetState/updateInstallationAndSetState.js +33 -0
  51. package/build/src/components/Configure/actions/proxy/isProxyEnabled.d.ts +2 -0
  52. package/build/src/components/Configure/actions/proxy/isProxyEnabled.js +8 -0
  53. package/build/src/components/Configure/actions/proxy/onCreateInstallationProxyOnly.d.ts +8 -0
  54. package/build/src/components/Configure/actions/proxy/{createInstallationProxyOnly.js → onCreateInstallationProxyOnly.js} +5 -5
  55. package/build/src/components/Configure/actions/{onSaveReadCreateInstallation.d.ts → read/onSaveReadCreateInstallation.d.ts} +2 -2
  56. package/build/src/components/Configure/actions/{onSaveReadCreateInstallation.js → read/onSaveReadCreateInstallation.js} +9 -3
  57. package/build/src/components/Configure/actions/read/onSaveReadUpdateInstallation.d.ts +3 -0
  58. package/build/src/components/Configure/actions/{onSaveReadUpdateInstallation.js → read/onSaveReadUpdateInstallation.js} +20 -28
  59. package/build/src/components/Configure/actions/write/onSaveWriteCreateInstallation.js +10 -3
  60. package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.d.ts +2 -2
  61. package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.js +11 -3
  62. package/build/src/components/Configure/content/CreateInstallation.js +1 -1
  63. package/build/src/components/Configure/content/UpdateInstallation.js +5 -5
  64. package/build/src/components/Configure/layout/ConditionalProxyLayout/ConditionalProxyLayout.js +2 -2
  65. package/build/src/components/Configure/layout/ProtectedConnectionLayout.js +2 -7
  66. package/build/src/components/Configure/state/utils.js +5 -5
  67. package/build/src/components/Oauth/NoWorkspaceEntry/LandingContent.js +12 -0
  68. package/build/src/components/Oauth/{NoSubdomainEntry/NoSubdomainOauthFlow.d.ts → NoWorkspaceEntry/NoWorkspaceOauthFlow.d.ts} +4 -4
  69. package/build/src/components/Oauth/{NoSubdomainEntry/NoSubdomainOauthFlow.js → NoWorkspaceEntry/NoWorkspaceOauthFlow.js} +6 -8
  70. package/build/src/components/Oauth/OAuthPopup.js +1 -5
  71. package/build/src/components/Oauth/OauthCardLayout.d.ts +6 -0
  72. package/build/src/components/Oauth/OauthCardLayout.js +9 -0
  73. package/build/src/components/Oauth/OauthFlow/OauthFlow.d.ts +9 -0
  74. package/build/src/components/Oauth/OauthFlow/OauthFlow.js +33 -0
  75. package/build/src/components/Oauth/Salesforce/SalesforceSubdomainEntry.d.ts +13 -0
  76. package/build/src/components/Oauth/Salesforce/SalesforceSubdomainEntry.js +18 -0
  77. package/build/src/components/Oauth/WorkspaceEntry/WorkspaceEntry.d.ts +9 -0
  78. package/build/src/components/Oauth/WorkspaceEntry/WorkspaceEntry.js +12 -0
  79. package/build/src/components/Oauth/WorkspaceEntry/WorkspaceOauthFlow.d.ts +14 -0
  80. package/build/src/components/Oauth/WorkspaceEntry/WorkspaceOauthFlow.js +58 -0
  81. package/build/src/components/ThemeProvider/Button/buttonTheme.js +3 -3
  82. package/build/src/components/ThemeProvider/index.js +6 -6
  83. package/build/src/services/ApiService.d.ts +2 -2
  84. package/build/src/services/ApiService.js +1 -1
  85. package/build/src/services/api.d.ts +2 -2
  86. package/build/src/services/api.js +5 -0
  87. package/build/src/services/version.d.ts +1 -0
  88. package/build/src/services/version.js +4 -0
  89. package/package.json +2 -2
  90. package/build/generated-sources/api/src/apis/OperationLogApi.d.ts +0 -55
  91. package/build/generated-sources/api/src/models/DestinationMetadata.d.ts +0 -39
  92. package/build/src/components/Configure/actions/onSaveReadUpdateInstallation.d.ts +0 -3
  93. package/build/src/components/Configure/actions/proxy/createInstallationProxyOnly.d.ts +0 -8
  94. package/build/src/components/Oauth/NoSubdomainEntry/LandingContent.js +0 -11
  95. package/build/src/components/Oauth/Salesforce/SalesforceOauthFlow.d.ts +0 -16
  96. package/build/src/components/Oauth/Salesforce/SalesforceOauthFlow.js +0 -57
  97. package/build/src/components/Oauth/Salesforce/SubdomainEntry.d.ts +0 -8
  98. package/build/src/components/Oauth/Salesforce/SubdomainEntry.js +0 -12
  99. package/build/src/constants.d.ts +0 -2
  100. package/build/src/constants.js +0 -5
  101. /package/build/src/components/Oauth/{NoSubdomainEntry → NoWorkspaceEntry}/LandingContent.d.ts +0 -0
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ampersand public API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PatchApiKeyRequestToJSON = exports.PatchApiKeyRequestFromJSONTyped = exports.PatchApiKeyRequestFromJSON = exports.instanceOfPatchApiKeyRequest = void 0;
17
+ const PatchApiKeyRequestApiKey_1 = require("./PatchApiKeyRequestApiKey");
18
+ /**
19
+ * Check if a given object implements the PatchApiKeyRequest interface.
20
+ */
21
+ function instanceOfPatchApiKeyRequest(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "updateMask" in value;
24
+ isInstance = isInstance && "apiKey" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfPatchApiKeyRequest = instanceOfPatchApiKeyRequest;
28
+ function PatchApiKeyRequestFromJSON(json) {
29
+ return PatchApiKeyRequestFromJSONTyped(json, false);
30
+ }
31
+ exports.PatchApiKeyRequestFromJSON = PatchApiKeyRequestFromJSON;
32
+ function PatchApiKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'updateMask': json['updateMask'],
38
+ 'apiKey': (0, PatchApiKeyRequestApiKey_1.PatchApiKeyRequestApiKeyFromJSON)(json['apiKey']),
39
+ };
40
+ }
41
+ exports.PatchApiKeyRequestFromJSONTyped = PatchApiKeyRequestFromJSONTyped;
42
+ function PatchApiKeyRequestToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'updateMask': value.updateMask,
51
+ 'apiKey': (0, PatchApiKeyRequestApiKey_1.PatchApiKeyRequestApiKeyToJSON)(value.apiKey),
52
+ };
53
+ }
54
+ exports.PatchApiKeyRequestToJSON = PatchApiKeyRequestToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PatchApiKeyRequestApiKey
16
+ */
17
+ export interface PatchApiKeyRequestApiKey {
18
+ /**
19
+ * A short name for the API key.
20
+ * @type {string}
21
+ * @memberof PatchApiKeyRequestApiKey
22
+ */
23
+ label?: string;
24
+ /**
25
+ * Whether the API key is active.
26
+ * @type {boolean}
27
+ * @memberof PatchApiKeyRequestApiKey
28
+ */
29
+ active?: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PatchApiKeyRequestApiKey interface.
33
+ */
34
+ export declare function instanceOfPatchApiKeyRequestApiKey(value: object): boolean;
35
+ export declare function PatchApiKeyRequestApiKeyFromJSON(json: any): PatchApiKeyRequestApiKey;
36
+ export declare function PatchApiKeyRequestApiKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchApiKeyRequestApiKey;
37
+ export declare function PatchApiKeyRequestApiKeyToJSON(value?: PatchApiKeyRequestApiKey | null): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ampersand public API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PatchApiKeyRequestApiKeyToJSON = exports.PatchApiKeyRequestApiKeyFromJSONTyped = exports.PatchApiKeyRequestApiKeyFromJSON = exports.instanceOfPatchApiKeyRequestApiKey = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the PatchApiKeyRequestApiKey interface.
20
+ */
21
+ function instanceOfPatchApiKeyRequestApiKey(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfPatchApiKeyRequestApiKey = instanceOfPatchApiKeyRequestApiKey;
26
+ function PatchApiKeyRequestApiKeyFromJSON(json) {
27
+ return PatchApiKeyRequestApiKeyFromJSONTyped(json, false);
28
+ }
29
+ exports.PatchApiKeyRequestApiKeyFromJSON = PatchApiKeyRequestApiKeyFromJSON;
30
+ function PatchApiKeyRequestApiKeyFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'label': !(0, runtime_1.exists)(json, 'label') ? undefined : json['label'],
36
+ 'active': !(0, runtime_1.exists)(json, 'active') ? undefined : json['active'],
37
+ };
38
+ }
39
+ exports.PatchApiKeyRequestApiKeyFromJSONTyped = PatchApiKeyRequestApiKeyFromJSONTyped;
40
+ function PatchApiKeyRequestApiKeyToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'label': value.label,
49
+ 'active': value.active,
50
+ };
51
+ }
52
+ exports.PatchApiKeyRequestApiKeyToJSON = PatchApiKeyRequestApiKeyToJSON;
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuthType } from './AuthType';
13
+ import type { OauthOpts } from './OauthOpts';
14
+ import type { Support } from './Support';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ProviderInfo
19
+ */
20
+ export interface ProviderInfo {
21
+ /**
22
+ *
23
+ * @type {AuthType}
24
+ * @memberof ProviderInfo
25
+ */
26
+ authType: AuthType;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof ProviderInfo
31
+ */
32
+ baseURL: string;
33
+ /**
34
+ *
35
+ * @type {OauthOpts}
36
+ * @memberof ProviderInfo
37
+ */
38
+ oauthOpts: OauthOpts;
39
+ /**
40
+ *
41
+ * @type {Support}
42
+ * @memberof ProviderInfo
43
+ */
44
+ support: Support;
45
+ /**
46
+ *
47
+ * @type {{ [key: string]: string; }}
48
+ * @memberof ProviderInfo
49
+ */
50
+ providerOpts: {
51
+ [key: string]: string;
52
+ };
53
+ }
54
+ /**
55
+ * Check if a given object implements the ProviderInfo interface.
56
+ */
57
+ export declare function instanceOfProviderInfo(value: object): boolean;
58
+ export declare function ProviderInfoFromJSON(json: any): ProviderInfo;
59
+ export declare function ProviderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderInfo;
60
+ export declare function ProviderInfoToJSON(value?: ProviderInfo | null): any;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ampersand public API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ProviderInfoToJSON = exports.ProviderInfoFromJSONTyped = exports.ProviderInfoFromJSON = exports.instanceOfProviderInfo = void 0;
17
+ const AuthType_1 = require("./AuthType");
18
+ const OauthOpts_1 = require("./OauthOpts");
19
+ const Support_1 = require("./Support");
20
+ /**
21
+ * Check if a given object implements the ProviderInfo interface.
22
+ */
23
+ function instanceOfProviderInfo(value) {
24
+ let isInstance = true;
25
+ isInstance = isInstance && "authType" in value;
26
+ isInstance = isInstance && "baseURL" in value;
27
+ isInstance = isInstance && "oauthOpts" in value;
28
+ isInstance = isInstance && "support" in value;
29
+ isInstance = isInstance && "providerOpts" in value;
30
+ return isInstance;
31
+ }
32
+ exports.instanceOfProviderInfo = instanceOfProviderInfo;
33
+ function ProviderInfoFromJSON(json) {
34
+ return ProviderInfoFromJSONTyped(json, false);
35
+ }
36
+ exports.ProviderInfoFromJSON = ProviderInfoFromJSON;
37
+ function ProviderInfoFromJSONTyped(json, ignoreDiscriminator) {
38
+ if ((json === undefined) || (json === null)) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'authType': (0, AuthType_1.AuthTypeFromJSON)(json['authType']),
43
+ 'baseURL': json['baseURL'],
44
+ 'oauthOpts': (0, OauthOpts_1.OauthOptsFromJSON)(json['oauthOpts']),
45
+ 'support': (0, Support_1.SupportFromJSON)(json['support']),
46
+ 'providerOpts': json['providerOpts'],
47
+ };
48
+ }
49
+ exports.ProviderInfoFromJSONTyped = ProviderInfoFromJSONTyped;
50
+ function ProviderInfoToJSON(value) {
51
+ if (value === undefined) {
52
+ return undefined;
53
+ }
54
+ if (value === null) {
55
+ return null;
56
+ }
57
+ return {
58
+ 'authType': (0, AuthType_1.AuthTypeToJSON)(value.authType),
59
+ 'baseURL': value.baseURL,
60
+ 'oauthOpts': (0, OauthOpts_1.OauthOptsToJSON)(value.oauthOpts),
61
+ 'support': (0, Support_1.SupportToJSON)(value.support),
62
+ 'providerOpts': value.providerOpts,
63
+ };
64
+ }
65
+ exports.ProviderInfoToJSON = ProviderInfoToJSON;
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface Support
16
+ */
17
+ export interface Support {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof Support
22
+ */
23
+ bulkWrite: boolean;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof Support
28
+ */
29
+ proxy: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof Support
34
+ */
35
+ read: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof Support
40
+ */
41
+ subscribe: boolean;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof Support
46
+ */
47
+ write: boolean;
48
+ }
49
+ /**
50
+ * Check if a given object implements the Support interface.
51
+ */
52
+ export declare function instanceOfSupport(value: object): boolean;
53
+ export declare function SupportFromJSON(json: any): Support;
54
+ export declare function SupportFromJSONTyped(json: any, ignoreDiscriminator: boolean): Support;
55
+ export declare function SupportToJSON(value?: Support | null): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ampersand public API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SupportToJSON = exports.SupportFromJSONTyped = exports.SupportFromJSON = exports.instanceOfSupport = void 0;
17
+ /**
18
+ * Check if a given object implements the Support interface.
19
+ */
20
+ function instanceOfSupport(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "bulkWrite" in value;
23
+ isInstance = isInstance && "proxy" in value;
24
+ isInstance = isInstance && "read" in value;
25
+ isInstance = isInstance && "subscribe" in value;
26
+ isInstance = isInstance && "write" in value;
27
+ return isInstance;
28
+ }
29
+ exports.instanceOfSupport = instanceOfSupport;
30
+ function SupportFromJSON(json) {
31
+ return SupportFromJSONTyped(json, false);
32
+ }
33
+ exports.SupportFromJSON = SupportFromJSON;
34
+ function SupportFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'bulkWrite': json['bulkWrite'],
40
+ 'proxy': json['proxy'],
41
+ 'read': json['read'],
42
+ 'subscribe': json['subscribe'],
43
+ 'write': json['write'],
44
+ };
45
+ }
46
+ exports.SupportFromJSONTyped = SupportFromJSONTyped;
47
+ function SupportToJSON(value) {
48
+ if (value === undefined) {
49
+ return undefined;
50
+ }
51
+ if (value === null) {
52
+ return null;
53
+ }
54
+ return {
55
+ 'bulkWrite': value.bulkWrite,
56
+ 'proxy': value.proxy,
57
+ 'read': value.read,
58
+ 'subscribe': value.subscribe,
59
+ 'write': value.write,
60
+ };
61
+ }
62
+ exports.SupportToJSON = SupportToJSON;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TokenMetadataFields
16
+ */
17
+ export interface TokenMetadataFields {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TokenMetadataFields
22
+ */
23
+ workspaceRefField?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TokenMetadataFields
28
+ */
29
+ consumerRefField?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof TokenMetadataFields
34
+ */
35
+ scopesField?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the TokenMetadataFields interface.
39
+ */
40
+ export declare function instanceOfTokenMetadataFields(value: object): boolean;
41
+ export declare function TokenMetadataFieldsFromJSON(json: any): TokenMetadataFields;
42
+ export declare function TokenMetadataFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenMetadataFields;
43
+ export declare function TokenMetadataFieldsToJSON(value?: TokenMetadataFields | null): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ampersand public API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TokenMetadataFieldsToJSON = exports.TokenMetadataFieldsFromJSONTyped = exports.TokenMetadataFieldsFromJSON = exports.instanceOfTokenMetadataFields = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the TokenMetadataFields interface.
20
+ */
21
+ function instanceOfTokenMetadataFields(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfTokenMetadataFields = instanceOfTokenMetadataFields;
26
+ function TokenMetadataFieldsFromJSON(json) {
27
+ return TokenMetadataFieldsFromJSONTyped(json, false);
28
+ }
29
+ exports.TokenMetadataFieldsFromJSON = TokenMetadataFieldsFromJSON;
30
+ function TokenMetadataFieldsFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'workspaceRefField': !(0, runtime_1.exists)(json, 'workspaceRefField') ? undefined : json['workspaceRefField'],
36
+ 'consumerRefField': !(0, runtime_1.exists)(json, 'consumerRefField') ? undefined : json['consumerRefField'],
37
+ 'scopesField': !(0, runtime_1.exists)(json, 'scopesField') ? undefined : json['scopesField'],
38
+ };
39
+ }
40
+ exports.TokenMetadataFieldsFromJSONTyped = TokenMetadataFieldsFromJSONTyped;
41
+ function TokenMetadataFieldsToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'workspaceRefField': value.workspaceRefField,
50
+ 'consumerRefField': value.consumerRefField,
51
+ 'scopesField': value.scopesField,
52
+ };
53
+ }
54
+ exports.TokenMetadataFieldsToJSON = TokenMetadataFieldsToJSON;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { UpdateDestinationRequestDestination } from './UpdateDestinationRequestDestination';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateDestinationRequest
17
+ */
18
+ export interface UpdateDestinationRequest {
19
+ /**
20
+ *
21
+ * @type {Array<string>}
22
+ * @memberof UpdateDestinationRequest
23
+ */
24
+ updateMask: Array<string>;
25
+ /**
26
+ *
27
+ * @type {UpdateDestinationRequestDestination}
28
+ * @memberof UpdateDestinationRequest
29
+ */
30
+ destination: UpdateDestinationRequestDestination;
31
+ }
32
+ /**
33
+ * Check if a given object implements the UpdateDestinationRequest interface.
34
+ */
35
+ export declare function instanceOfUpdateDestinationRequest(value: object): boolean;
36
+ export declare function UpdateDestinationRequestFromJSON(json: any): UpdateDestinationRequest;
37
+ export declare function UpdateDestinationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDestinationRequest;
38
+ export declare function UpdateDestinationRequestToJSON(value?: UpdateDestinationRequest | null): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ampersand public API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateDestinationRequestToJSON = exports.UpdateDestinationRequestFromJSONTyped = exports.UpdateDestinationRequestFromJSON = exports.instanceOfUpdateDestinationRequest = void 0;
17
+ const UpdateDestinationRequestDestination_1 = require("./UpdateDestinationRequestDestination");
18
+ /**
19
+ * Check if a given object implements the UpdateDestinationRequest interface.
20
+ */
21
+ function instanceOfUpdateDestinationRequest(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "updateMask" in value;
24
+ isInstance = isInstance && "destination" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfUpdateDestinationRequest = instanceOfUpdateDestinationRequest;
28
+ function UpdateDestinationRequestFromJSON(json) {
29
+ return UpdateDestinationRequestFromJSONTyped(json, false);
30
+ }
31
+ exports.UpdateDestinationRequestFromJSON = UpdateDestinationRequestFromJSON;
32
+ function UpdateDestinationRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'updateMask': json['updateMask'],
38
+ 'destination': (0, UpdateDestinationRequestDestination_1.UpdateDestinationRequestDestinationFromJSON)(json['destination']),
39
+ };
40
+ }
41
+ exports.UpdateDestinationRequestFromJSONTyped = UpdateDestinationRequestFromJSONTyped;
42
+ function UpdateDestinationRequestToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'updateMask': value.updateMask,
51
+ 'destination': (0, UpdateDestinationRequestDestination_1.UpdateDestinationRequestDestinationToJSON)(value.destination),
52
+ };
53
+ }
54
+ exports.UpdateDestinationRequestToJSON = UpdateDestinationRequestToJSON;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CreateDestinationRequestMetadata } from './CreateDestinationRequestMetadata';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateDestinationRequestDestination
17
+ */
18
+ export interface UpdateDestinationRequestDestination {
19
+ /**
20
+ * User-friendly name for the destination
21
+ * @type {string}
22
+ * @memberof UpdateDestinationRequestDestination
23
+ */
24
+ name?: string;
25
+ /**
26
+ *
27
+ * @type {CreateDestinationRequestMetadata}
28
+ * @memberof UpdateDestinationRequestDestination
29
+ */
30
+ metadata?: CreateDestinationRequestMetadata;
31
+ }
32
+ /**
33
+ * Check if a given object implements the UpdateDestinationRequestDestination interface.
34
+ */
35
+ export declare function instanceOfUpdateDestinationRequestDestination(value: object): boolean;
36
+ export declare function UpdateDestinationRequestDestinationFromJSON(json: any): UpdateDestinationRequestDestination;
37
+ export declare function UpdateDestinationRequestDestinationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDestinationRequestDestination;
38
+ export declare function UpdateDestinationRequestDestinationToJSON(value?: UpdateDestinationRequestDestination | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ampersand public API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateDestinationRequestDestinationToJSON = exports.UpdateDestinationRequestDestinationFromJSONTyped = exports.UpdateDestinationRequestDestinationFromJSON = exports.instanceOfUpdateDestinationRequestDestination = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const CreateDestinationRequestMetadata_1 = require("./CreateDestinationRequestMetadata");
19
+ /**
20
+ * Check if a given object implements the UpdateDestinationRequestDestination interface.
21
+ */
22
+ function instanceOfUpdateDestinationRequestDestination(value) {
23
+ let isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfUpdateDestinationRequestDestination = instanceOfUpdateDestinationRequestDestination;
27
+ function UpdateDestinationRequestDestinationFromJSON(json) {
28
+ return UpdateDestinationRequestDestinationFromJSONTyped(json, false);
29
+ }
30
+ exports.UpdateDestinationRequestDestinationFromJSON = UpdateDestinationRequestDestinationFromJSON;
31
+ function UpdateDestinationRequestDestinationFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
37
+ 'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, CreateDestinationRequestMetadata_1.CreateDestinationRequestMetadataFromJSON)(json['metadata']),
38
+ };
39
+ }
40
+ exports.UpdateDestinationRequestDestinationFromJSONTyped = UpdateDestinationRequestDestinationFromJSONTyped;
41
+ function UpdateDestinationRequestDestinationToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'name': value.name,
50
+ 'metadata': (0, CreateDestinationRequestMetadata_1.CreateDestinationRequestMetadataToJSON)(value.metadata),
51
+ };
52
+ }
53
+ exports.UpdateDestinationRequestDestinationToJSON = UpdateDestinationRequestDestinationToJSON;