@appsemble/utils 0.20.42 → 0.20.43
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.
- package/LICENSE.md +126 -0
- package/README.md +9 -3
- package/api/components/index.d.ts +1 -1
- package/api/components/parameters/$filter.d.ts +1 -1
- package/api/components/parameters/$orderby.d.ts +1 -1
- package/api/components/parameters/$select.d.ts +1 -1
- package/api/components/parameters/$team.d.ts +1 -1
- package/api/components/parameters/$top.d.ts +1 -1
- package/api/components/parameters/appId.d.ts +1 -1
- package/api/components/parameters/appOAuth2SecretId.d.ts +1 -1
- package/api/components/parameters/appSamlSecretId.d.ts +1 -1
- package/api/components/parameters/appServiceId.d.ts +2 -0
- package/api/components/parameters/appServiceId.js +8 -0
- package/api/components/parameters/assetId.d.ts +1 -1
- package/api/components/parameters/blockId.d.ts +1 -1
- package/api/components/parameters/blockVersion.d.ts +1 -1
- package/api/components/parameters/endpoint.d.ts +1 -1
- package/api/components/parameters/index.d.ts +1 -0
- package/api/components/parameters/index.js +1 -0
- package/api/components/parameters/language.d.ts +1 -1
- package/api/components/parameters/organizationId.d.ts +1 -1
- package/api/components/parameters/resourceId.d.ts +1 -1
- package/api/components/parameters/resourceType.d.ts +1 -1
- package/api/components/parameters/screenshotId.d.ts +1 -1
- package/api/components/parameters/view.d.ts +1 -1
- package/api/components/requestBodies/oauth2Consent.d.ts +1 -1
- package/api/components/requestBodies/resource.d.ts +1 -1
- package/api/components/requestBodies/user.d.ts +1 -1
- package/api/components/responses/app.d.ts +1 -1
- package/api/components/responses/blockVersion.d.ts +1 -1
- package/api/components/responses/invite.d.ts +1 -1
- package/api/components/responses/oauth2AuthorizationCode.d.ts +1 -1
- package/api/components/responses/organization.d.ts +1 -1
- package/api/components/responses/resource.d.ts +1 -1
- package/api/components/responses/subscriptions.d.ts +1 -1
- package/api/components/schemas/ActionDefinition.d.ts +1 -1
- package/api/components/schemas/App.d.ts +1 -1
- package/api/components/schemas/AppAccount.d.ts +1 -1
- package/api/components/schemas/AppDefinition.d.ts +1 -1
- package/api/components/schemas/AppLayoutDefinition.d.ts +1 -1
- package/api/components/schemas/AppMessages.d.ts +1 -1
- package/api/components/schemas/AppOAuth2Secret.d.ts +1 -1
- package/api/components/schemas/AppServiceSecret.d.ts +2 -0
- package/api/components/schemas/AppServiceSecret.js +45 -0
- package/api/components/schemas/AppsembleMessages.d.ts +1 -1
- package/api/components/schemas/ArrayRemapperDefinition.d.ts +1 -1
- package/api/components/schemas/Asset.d.ts +1 -1
- package/api/components/schemas/BaseActionDefinition.d.ts +1 -1
- package/api/components/schemas/BaseJSONSchema.d.ts +1 -1
- package/api/components/schemas/BasePageDefinition.d.ts +1 -1
- package/api/components/schemas/BlockDefinition.d.ts +1 -1
- package/api/components/schemas/BlockVersion.d.ts +1 -1
- package/api/components/schemas/CronDefinition.d.ts +1 -1
- package/api/components/schemas/CustomFontDefinition.d.ts +1 -1
- package/api/components/schemas/Error.d.ts +1 -1
- package/api/components/schemas/EventsDefinition.d.ts +1 -1
- package/api/components/schemas/FlowPageActionsDefinition.d.ts +1 -1
- package/api/components/schemas/GoogleFontDefinition.d.ts +1 -1
- package/api/components/schemas/Health.d.ts +1 -1
- package/api/components/schemas/JSONSchema.d.ts +1 -1
- package/api/components/schemas/LoopPageActionsDefinition.d.ts +1 -1
- package/api/components/schemas/Member.d.ts +1 -1
- package/api/components/schemas/NotificationHookDataDefinition.d.ts +1 -1
- package/api/components/schemas/NotificationHookDefinition.d.ts +1 -1
- package/api/components/schemas/OAuth2AuthorizationCode.d.ts +1 -1
- package/api/components/schemas/OAuth2ClientCredentials.d.ts +1 -1
- package/api/components/schemas/ObjectRemapperDefinition.d.ts +1 -1
- package/api/components/schemas/ObjectRemapperDefinition.js +42 -1
- package/api/components/schemas/Organization.d.ts +1 -1
- package/api/components/schemas/Rating.d.ts +1 -1
- package/api/components/schemas/RemapperDefinition.d.ts +1 -1
- package/api/components/schemas/Resource.d.ts +1 -1
- package/api/components/schemas/ResourceDefinition.d.ts +1 -1
- package/api/components/schemas/ResourceHistoryDefinition.d.ts +1 -1
- package/api/components/schemas/ResourceHooksDefinition.d.ts +1 -1
- package/api/components/schemas/ResourceSubscription.d.ts +1 -1
- package/api/components/schemas/ResourceViewDefinition.d.ts +1 -1
- package/api/components/schemas/SSLSecret.d.ts +1 -1
- package/api/components/schemas/SSOConfiguration.d.ts +1 -1
- package/api/components/schemas/SecurityDefaultDefinition.d.ts +1 -1
- package/api/components/schemas/SecurityDefaultDefinition.js +7 -0
- package/api/components/schemas/SecurityDefinition.d.ts +1 -1
- package/api/components/schemas/SecurityRoleDefinition.d.ts +1 -1
- package/api/components/schemas/SubPage.d.ts +1 -1
- package/api/components/schemas/TeamsDefinition.d.ts +1 -1
- package/api/components/schemas/Theme.d.ts +1 -1
- package/api/components/schemas/User.d.ts +1 -1
- package/api/components/schemas/UserEmail.d.ts +1 -1
- package/api/components/schemas/index.d.ts +1 -0
- package/api/components/schemas/index.js +1 -0
- package/api/components/schemas/utils.d.ts +1 -1
- package/api/components/securitySchemes/app.d.ts +1 -1
- package/api/components/securitySchemes/basic.d.ts +1 -1
- package/api/components/securitySchemes/cli.d.ts +1 -1
- package/api/components/securitySchemes/cli.test.js +1 -1
- package/api/components/securitySchemes/studio.d.ts +1 -1
- package/api/index.d.ts +1 -1
- package/api/paths/action.d.ts +1 -1
- package/api/paths/appMessages.d.ts +1 -1
- package/api/paths/appOAuth2Secrets.d.ts +1 -1
- package/api/paths/appSSLSecrets.d.ts +1 -1
- package/api/paths/appSamlSecrets.d.ts +1 -1
- package/api/paths/appServiceSecrets.d.ts +2 -0
- package/api/paths/appServiceSecrets.js +84 -0
- package/api/paths/apps.d.ts +1 -1
- package/api/paths/appsembleMessages.d.ts +1 -1
- package/api/paths/assets.d.ts +1 -1
- package/api/paths/blocks.d.ts +1 -1
- package/api/paths/emails.d.ts +1 -1
- package/api/paths/health.d.ts +1 -1
- package/api/paths/index.js +2 -0
- package/api/paths/invite.d.ts +1 -1
- package/api/paths/oauth2ClientCredentials.d.ts +1 -1
- package/api/paths/oauth2Login.d.ts +1 -1
- package/api/paths/oauth2Provider.d.ts +1 -1
- package/api/paths/organizations.d.ts +1 -1
- package/api/paths/resourceHistory.d.ts +1 -1
- package/api/paths/resources.d.ts +1 -1
- package/api/paths/saml.d.ts +1 -1
- package/api/paths/templates.d.ts +1 -1
- package/api/paths/user.d.ts +1 -1
- package/api/tags/app.d.ts +1 -1
- package/api/tags/appMember.d.ts +1 -1
- package/api/tags/asset.d.ts +1 -1
- package/api/tags/auth.d.ts +1 -1
- package/api/tags/language.d.ts +1 -1
- package/api/tags/organization.d.ts +1 -1
- package/api/tags/resource.d.ts +1 -1
- package/api/tags/template.d.ts +1 -1
- package/api/tags/user.d.ts +1 -1
- package/appMessages.d.ts +3 -3
- package/appMessages.js +1 -1
- package/appSecurity.d.ts +1 -1
- package/blockUtils.d.ts +1 -1
- package/checkAppRole.d.ts +1 -1
- package/constants/baseTheme.d.ts +1 -1
- package/formatRequestAction.d.ts +2 -2
- package/ics.d.ts +1 -1
- package/iterApp.d.ts +1 -1
- package/jsonschema.d.ts +2 -2
- package/langmap.d.ts +1 -1
- package/normalize.d.ts +1 -1
- package/normalize.js +1 -1
- package/package.json +2 -2
- package/remap.d.ts +2 -2
- package/remap.js +15 -0
- package/remap.test.js +126 -0
- package/serverActions.d.ts +1 -0
- package/serverActions.js +13 -0
- package/theme.d.ts +1 -1
- package/validation.d.ts +5 -5
- package/validation.js +6 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const Organization: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const Rating: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const RemapperDefinition: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const Resource: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const ResourceDefinition: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const ResourceHistoryDefinition: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const ResourceHooksDefinition: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const ResourceSubscription: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const ResourceViewDefinition: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const SSLSecret: OpenAPIV3.SchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const SSOConfiguration: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const SecurityDefaultDefinition: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -13,6 +13,13 @@ The following values are allowed:
|
|
|
13
13
|
- \`everyone\`: Every authenticated user gets the default role.
|
|
14
14
|
- \`organization\`: Every authenticated user gets the default role if they are in the same organization as the app.
|
|
15
15
|
- \`invite\`: The user has to manually get a role assigned.
|
|
16
|
+
|
|
17
|
+
> **Important**: When [OAuth2](../03-guide/oauth2) or [SAML2.0](../03-guide/saml) is used in the
|
|
18
|
+
> app, you must set the policy to \`everyone\`. This will specifically allow every configured
|
|
19
|
+
> authentication method on the secrets page to be used as login method. If you do not want other
|
|
20
|
+
> Appsemble user accounts to be able to log in, you must \`disable\` the \`appsemble login\` options
|
|
21
|
+
> (including the Appsemble OAuth2 option) in the secrets page. If this option is enabled, any
|
|
22
|
+
> Appsemble user account is able to log in to the app and will receive the default role.
|
|
16
23
|
`,
|
|
17
24
|
},
|
|
18
25
|
role: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const SecurityDefinition: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const SecurityRoleDefinition: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const SubPage: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const TeamsDefinition: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const Theme: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const User: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const UserEmail: OpenAPIV3.NonArraySchemaObject;
|
|
@@ -7,6 +7,7 @@ export * from './AppLayoutDefinition.js';
|
|
|
7
7
|
export * from './AppMessages.js';
|
|
8
8
|
export * from './AppOAuth2Secret.js';
|
|
9
9
|
export * from './AppsembleMessages.js';
|
|
10
|
+
export * from './AppServiceSecret.js';
|
|
10
11
|
export * from './ArrayRemapperDefinition.js';
|
|
11
12
|
export * from './Asset.js';
|
|
12
13
|
export * from './BlockDefinition.js';
|
|
@@ -7,6 +7,7 @@ export * from './AppLayoutDefinition.js';
|
|
|
7
7
|
export * from './AppMessages.js';
|
|
8
8
|
export * from './AppOAuth2Secret.js';
|
|
9
9
|
export * from './AppsembleMessages.js';
|
|
10
|
+
export * from './AppServiceSecret.js';
|
|
10
11
|
export * from './ArrayRemapperDefinition.js';
|
|
11
12
|
export * from './Asset.js';
|
|
12
13
|
export * from './BlockDefinition.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const app: OpenAPIV3.OAuth2SecurityScheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const basic: OpenAPIV3.HttpSecurityScheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const cli: OpenAPIV3.OAuth2SecurityScheme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { scopes } from '../../../constants/index.js';
|
|
2
1
|
import { cli } from './cli.js';
|
|
2
|
+
import { scopes } from '../../../constants/index.js';
|
|
3
3
|
it('should match the known scopes defined in utils', () => {
|
|
4
4
|
expect(Object.keys(cli.flows.clientCredentials.scopes)).toStrictEqual(scopes);
|
|
5
5
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const studio: OpenAPIV3.HttpSecurityScheme;
|
package/api/index.d.ts
CHANGED
package/api/paths/action.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export const paths = {
|
|
2
|
+
'/api/apps/{appId}/secrets/service': {
|
|
3
|
+
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
4
|
+
post: {
|
|
5
|
+
tags: ['secret'],
|
|
6
|
+
operationId: 'addAppServiceSecret',
|
|
7
|
+
requestBody: {
|
|
8
|
+
content: {
|
|
9
|
+
'application/json': {
|
|
10
|
+
schema: { $ref: '#/components/schemas/AppServiceSecret' },
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
security: [{ studio: [] }],
|
|
15
|
+
responses: {
|
|
16
|
+
201: {
|
|
17
|
+
description: 'The created app service secret.',
|
|
18
|
+
content: {
|
|
19
|
+
'application/json': {
|
|
20
|
+
schema: { $ref: '#/components/schemas/AppServiceSecret' },
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
get: {
|
|
27
|
+
tags: ['secret'],
|
|
28
|
+
operationId: 'getAppServiceSecrets',
|
|
29
|
+
security: [{ studio: [] }],
|
|
30
|
+
responses: {
|
|
31
|
+
200: {
|
|
32
|
+
description: 'The list of app service secrets.',
|
|
33
|
+
content: {
|
|
34
|
+
'application/json': {
|
|
35
|
+
schema: {
|
|
36
|
+
type: 'array',
|
|
37
|
+
items: { $ref: '#/components/schemas/AppServiceSecret' },
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
'/api/apps/{appId}/secrets/service/{appServiceId}': {
|
|
46
|
+
parameters: [
|
|
47
|
+
{ $ref: '#/components/parameters/appId' },
|
|
48
|
+
{ $ref: '#/components/parameters/appServiceId' },
|
|
49
|
+
],
|
|
50
|
+
put: {
|
|
51
|
+
tags: ['secret'],
|
|
52
|
+
operationId: 'updateAppServiceSecret',
|
|
53
|
+
requestBody: {
|
|
54
|
+
content: {
|
|
55
|
+
'application/json': {
|
|
56
|
+
schema: { $ref: '#/components/schemas/AppServiceSecret' },
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
security: [{ studio: [] }],
|
|
61
|
+
responses: {
|
|
62
|
+
200: {
|
|
63
|
+
description: 'The updated app service secret.',
|
|
64
|
+
content: {
|
|
65
|
+
'application/json': {
|
|
66
|
+
schema: { $ref: '#/components/schemas/AppServiceSecret' },
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
delete: {
|
|
73
|
+
tags: ['secret'],
|
|
74
|
+
operationId: 'deleteAppServiceSecret',
|
|
75
|
+
security: [{ studio: [] }],
|
|
76
|
+
responses: {
|
|
77
|
+
204: {
|
|
78
|
+
description: 'The deleted app service secret.',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=appServiceSecrets.js.map
|
package/api/paths/apps.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
package/api/paths/assets.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
package/api/paths/blocks.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
package/api/paths/emails.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
package/api/paths/health.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
package/api/paths/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { paths as appOAuth2Secrets } from './appOAuth2Secrets.js';
|
|
|
4
4
|
import { paths as apps } from './apps.js';
|
|
5
5
|
import { paths as appSamlSecrets } from './appSamlSecrets.js';
|
|
6
6
|
import { paths as appsembleMessages } from './appsembleMessages.js';
|
|
7
|
+
import { paths as appServiceSecrets } from './appServiceSecrets.js';
|
|
7
8
|
import { paths as appSSLSecrets } from './appSSLSecrets.js';
|
|
8
9
|
import { paths as assets } from './assets.js';
|
|
9
10
|
import { paths as blocks } from './blocks.js';
|
|
@@ -40,6 +41,7 @@ export const paths = {
|
|
|
40
41
|
...saml,
|
|
41
42
|
...templates,
|
|
42
43
|
...translations,
|
|
44
|
+
...appServiceSecrets,
|
|
43
45
|
...user,
|
|
44
46
|
};
|
|
45
47
|
//# sourceMappingURL=index.js.map
|
package/api/paths/invite.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
package/api/paths/resources.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
package/api/paths/saml.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
package/api/paths/templates.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
package/api/paths/user.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const paths: OpenAPIV3.PathsObject;
|
package/api/tags/app.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const app: OpenAPIV3.TagObject;
|
package/api/tags/appMember.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const app: OpenAPIV3.TagObject;
|
package/api/tags/asset.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const asset: OpenAPIV3.TagObject;
|
package/api/tags/auth.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const auth: OpenAPIV3.TagObject;
|
package/api/tags/language.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const language: OpenAPIV3.TagObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const organization: OpenAPIV3.TagObject;
|
package/api/tags/resource.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const resource: OpenAPIV3.TagObject;
|
package/api/tags/template.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const template: OpenAPIV3.TagObject;
|
package/api/tags/user.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
1
|
+
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export declare const user: OpenAPIV3.TagObject;
|
package/appMessages.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AppDefinition, AppsembleMessages, BlockDefinition } from '@appsemble/types';
|
|
2
|
-
import { Prefix } from './index.js';
|
|
1
|
+
import { type AppDefinition, type AppsembleMessages, type BlockDefinition } from '@appsemble/types';
|
|
2
|
+
import { type Prefix } from './index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Recursively find `string.format` remapper message IDs.
|
|
5
5
|
*
|
|
@@ -12,7 +12,7 @@ export declare function findMessageIds(obj: unknown): Record<string, string>;
|
|
|
12
12
|
*
|
|
13
13
|
* @param app The app definition to extract message IDs from
|
|
14
14
|
* @param onBlock A function to extract block messages. This is needed, because block messages may
|
|
15
|
-
*
|
|
15
|
+
* be extracted based on different contexts.
|
|
16
16
|
* @returns A list of message IDs
|
|
17
17
|
*/
|
|
18
18
|
export declare function extractAppMessages(app: AppDefinition, onBlock?: (block: BlockDefinition, prefix: Prefix) => void): Pick<AppsembleMessages, 'app' | 'messageIds'>;
|
package/appMessages.js
CHANGED
|
@@ -32,7 +32,7 @@ export function findMessageIds(obj) {
|
|
|
32
32
|
*
|
|
33
33
|
* @param app The app definition to extract message IDs from
|
|
34
34
|
* @param onBlock A function to extract block messages. This is needed, because block messages may
|
|
35
|
-
*
|
|
35
|
+
* be extracted based on different contexts.
|
|
36
36
|
* @returns A list of message IDs
|
|
37
37
|
*/
|
|
38
38
|
export function extractAppMessages(app, onBlock) {
|
package/appSecurity.d.ts
CHANGED
package/blockUtils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppDefinition, BlockDefinition } from '@appsemble/types';
|
|
1
|
+
import { type AppDefinition, type BlockDefinition } from '@appsemble/types';
|
|
2
2
|
export type IdentifiableBlock = Pick<BlockDefinition, 'type' | 'version'>;
|
|
3
3
|
/**
|
|
4
4
|
* Normalize a block name by prefixing it with `@appsemble` if necessary.
|
package/checkAppRole.d.ts
CHANGED
package/constants/baseTheme.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Theme } from '@appsemble/types';
|
|
1
|
+
import { type Theme } from '@appsemble/types';
|
|
2
2
|
export declare const baseTheme: Theme;
|
package/formatRequestAction.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Remapper, RequestLikeActionDefinition } from '@appsemble/types';
|
|
2
|
-
import { RawAxiosRequestConfig } from 'axios';
|
|
1
|
+
import { type Remapper, type RequestLikeActionDefinition } from '@appsemble/types';
|
|
2
|
+
import { type RawAxiosRequestConfig } from 'axios';
|
|
3
3
|
export declare function formatRequestAction({ method, query, ...action }: RequestLikeActionDefinition, data: unknown, remap: (remapper: Remapper, data: any, context: Record<string, unknown>) => any, context: Record<string, unknown>): RawAxiosRequestConfig;
|
package/ics.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DurationObject, GeoCoordinates } from 'ics';
|
|
1
|
+
import { type DurationObject, type GeoCoordinates } from 'ics';
|
|
2
2
|
export declare function getDuration(duration: number | string): DurationObject;
|
|
3
3
|
export declare function processLocation(location: any): GeoCoordinates | undefined;
|
package/iterApp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionDefinition, AppDefinition, BlockDefinition, PageDefinition } from '@appsemble/types';
|
|
1
|
+
import { type ActionDefinition, type AppDefinition, type BlockDefinition, type PageDefinition } from '@appsemble/types';
|
|
2
2
|
export type Prefix = (number | string)[];
|
|
3
3
|
type IterCallback<T> = (item: T, path: Prefix) => boolean | void;
|
|
4
4
|
interface IterCallbacks {
|
package/jsonschema.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Schema } from 'jsonschema';
|
|
2
|
-
import { JsonArray, JsonValue } from 'type-fest';
|
|
1
|
+
import { type Schema } from 'jsonschema';
|
|
2
|
+
import { type JsonArray, type JsonValue } from 'type-fest';
|
|
3
3
|
declare module 'jsonschema' {
|
|
4
4
|
/**
|
|
5
5
|
* See https://github.com/tdegrunt/jsonschema/pull/335
|
package/langmap.d.ts
CHANGED
package/normalize.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @param input The input string to normalize.
|
|
9
9
|
* @param stripTrailingHyphen Strip a trailing hyphen. Disable for example when processing user
|
|
10
|
-
*
|
|
10
|
+
* input directly while the user is typing.
|
|
11
11
|
* @returns The normalized string.
|
|
12
12
|
*/
|
|
13
13
|
export declare function normalize(input: string, stripTrailingHyphen?: boolean): string;
|
package/normalize.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @param input The input string to normalize.
|
|
9
9
|
* @param stripTrailingHyphen Strip a trailing hyphen. Disable for example when processing user
|
|
10
|
-
*
|
|
10
|
+
* input directly while the user is typing.
|
|
11
11
|
* @returns The normalized string.
|
|
12
12
|
*/
|
|
13
13
|
export function normalize(input, stripTrailingHyphen = true) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/utils",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.43",
|
|
4
4
|
"description": "Utility functions used in Appsemble internally",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@appsemble/types": "0.20.
|
|
34
|
+
"@appsemble/types": "0.20.43",
|
|
35
35
|
"axios": "^1.0.0",
|
|
36
36
|
"cron-parser": "^4.0.0",
|
|
37
37
|
"date-fns": "^2.0.0",
|
package/remap.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Remapper, UserInfo } from '@appsemble/types';
|
|
2
|
-
import { IntlMessageFormat } from 'intl-messageformat';
|
|
1
|
+
import { type Remapper, type UserInfo } from '@appsemble/types';
|
|
2
|
+
import { type IntlMessageFormat } from 'intl-messageformat';
|
|
3
3
|
export interface IntlMessage {
|
|
4
4
|
id?: string;
|
|
5
5
|
defaultMessage?: string;
|