@appsemble/types 0.19.7 → 0.19.11

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/dist/app.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The app visibility of the app in the Appsemble app store.
3
+ *
4
+ * This doesn’t affect whether or not the app can be accessed on its own domain.
5
+ *
6
+ * - **public**: The app is publicly listed in the Appsemble app store.
7
+ * - **unlisted**: The app store page can be accessed, but the app isn’t listed publicly in the
8
+ * Appsemble app store.
9
+ * - **private**: The app is only visible to people who are part of the organization.
10
+ */
11
+ export declare type AppVisibility = 'private' | 'public' | 'unlisted';
package/dist/app.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -3,6 +3,8 @@ import { IconName } from '@fortawesome/fontawesome-common-types';
3
3
  import { Schema } from 'jsonschema';
4
4
  import { OpenAPIV3 } from 'openapi-types';
5
5
  import { JsonObject, RequireExactlyOne } from 'type-fest';
6
+ import { AppVisibility } from './app';
7
+ export * from './app';
6
8
  export * from './appMember';
7
9
  export * from './asset';
8
10
  export * from './authentication';
@@ -253,8 +255,10 @@ export interface Remappers {
253
255
  static: any;
254
256
  /**
255
257
  * Get a property from an object.
258
+ *
259
+ * If the prop is an array, nested properties will be retrieved in sequence.
256
260
  */
257
- prop: number | string;
261
+ prop: number[] | string[] | number | string;
258
262
  /**
259
263
  * Recursively strip all nullish values from an object or array.
260
264
  */
@@ -453,6 +457,16 @@ export interface BaseActionDefinition<T extends Action['type']> {
453
457
  */
454
458
  onError?: ActionDefinition;
455
459
  }
460
+ export interface AnalyticsAction extends BaseActionDefinition<'analytics'> {
461
+ /**
462
+ * The analytics event target name.
463
+ */
464
+ target: string;
465
+ /**
466
+ * Additional config to pass to analytics.
467
+ */
468
+ config?: Remapper;
469
+ }
456
470
  export interface ConditionActionDefinition extends BaseActionDefinition<'condition'> {
457
471
  /**
458
472
  * The condition to check for.
@@ -490,6 +504,12 @@ export interface EmailActionDefinition extends BaseActionDefinition<'email'> {
490
504
  * The recipient of the email.
491
505
  */
492
506
  to?: Remapper;
507
+ /**
508
+ * The name of the sender.
509
+ *
510
+ * The default value depends on the email server.
511
+ */
512
+ from?: Remapper;
493
513
  /**
494
514
  * The recipients to CC the email to.
495
515
  */
@@ -708,7 +728,7 @@ export declare type MessageActionDefinition = BaseActionDefinition<'message'> &
708
728
  */
709
729
  body: Remapper;
710
730
  };
711
- export declare type ActionDefinition = BaseActionDefinition<'dialog.error'> | BaseActionDefinition<'dialog.ok'> | BaseActionDefinition<'flow.back'> | BaseActionDefinition<'flow.cancel'> | BaseActionDefinition<'flow.finish'> | BaseActionDefinition<'flow.next'> | BaseActionDefinition<'link.back'> | BaseActionDefinition<'link.next'> | BaseActionDefinition<'noop'> | BaseActionDefinition<'team.join'> | BaseActionDefinition<'team.list'> | BaseActionDefinition<'throw'> | ConditionActionDefinition | DialogActionDefinition | EmailActionDefinition | EventActionDefinition | FlowToActionDefinition | LinkActionDefinition | LogActionDefinition | MessageActionDefinition | RequestActionDefinition | ResourceCountActionDefinition | ResourceCreateActionDefinition | ResourceDeleteActionDefinition | ResourceGetActionDefinition | ResourceQueryActionDefinition | ResourceSubscriptionStatusActionDefinition | ResourceSubscriptionSubscribeActionDefinition | ResourceSubscriptionToggleActionDefinition | ResourceSubscriptionUnsubscribeActionDefinition | ResourceUpdateActionDefinition | ShareActionDefinition | StaticActionDefinition | StorageReadActionDefinition | StorageWriteActionDefinition | UserLoginAction | UserRegisterAction | UserUpdateAction;
731
+ export declare type ActionDefinition = AnalyticsAction | BaseActionDefinition<'dialog.error'> | BaseActionDefinition<'dialog.ok'> | BaseActionDefinition<'flow.back'> | BaseActionDefinition<'flow.cancel'> | BaseActionDefinition<'flow.finish'> | BaseActionDefinition<'flow.next'> | BaseActionDefinition<'link.back'> | BaseActionDefinition<'link.next'> | BaseActionDefinition<'noop'> | BaseActionDefinition<'team.join'> | BaseActionDefinition<'team.list'> | BaseActionDefinition<'throw'> | ConditionActionDefinition | DialogActionDefinition | EmailActionDefinition | EventActionDefinition | FlowToActionDefinition | LinkActionDefinition | LogActionDefinition | MessageActionDefinition | RequestActionDefinition | ResourceCountActionDefinition | ResourceCreateActionDefinition | ResourceDeleteActionDefinition | ResourceGetActionDefinition | ResourceQueryActionDefinition | ResourceSubscriptionStatusActionDefinition | ResourceSubscriptionSubscribeActionDefinition | ResourceSubscriptionToggleActionDefinition | ResourceSubscriptionUnsubscribeActionDefinition | ResourceUpdateActionDefinition | ShareActionDefinition | StaticActionDefinition | StorageReadActionDefinition | StorageWriteActionDefinition | UserLoginAction | UserRegisterAction | UserUpdateAction;
712
732
  export interface ActionType {
713
733
  /**
714
734
  * Whether or not app creators are required to define this action.
@@ -981,6 +1001,10 @@ export interface App {
981
1001
  */
982
1002
  id?: number;
983
1003
  domain?: string;
1004
+ /**
1005
+ * The name used for emails
1006
+ */
1007
+ emailName?: string;
984
1008
  /**
985
1009
  * The id of the organization this app belongs to.
986
1010
  */
@@ -998,9 +1022,13 @@ export interface App {
998
1022
  */
999
1023
  path: string;
1000
1024
  /**
1001
- * Whether the app should be visible for users outside of the app’s organization.
1025
+ * Visibility of the app in the public app store.
1026
+ */
1027
+ visibility: AppVisibility;
1028
+ /**
1029
+ * Whether or not the app definition is exposed for display in Appsemble Studio.
1002
1030
  */
1003
- private: boolean;
1031
+ showAppDefinition: boolean;
1004
1032
  /**
1005
1033
  * The Google analytics ID of the app.
1006
1034
  */
@@ -1017,6 +1045,14 @@ export interface App {
1017
1045
  * Whether the Appsemble OAuth2 login method should be shown.
1018
1046
  */
1019
1047
  showAppsembleOAuth2Login: boolean;
1048
+ /**
1049
+ * The Sentry DSN of the app.
1050
+ */
1051
+ sentryDsn: string;
1052
+ /**
1053
+ * The Sentry environment associated with the Sentry DSN.
1054
+ */
1055
+ sentryEnvironment: string;
1020
1056
  /**
1021
1057
  * The app definition.
1022
1058
  */
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './app';
1
2
  export * from './appMember';
2
3
  export * from './asset';
3
4
  export * from './authentication';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { AppVisibility } from './app';
1
2
  export interface Template {
2
3
  /**
3
4
  * The id of the app to clone.
@@ -16,9 +17,9 @@ export interface Template {
16
17
  */
17
18
  organizationId: string;
18
19
  /**
19
- * Whether or not the cloned app should be marked as private.
20
+ * Whether or not the cloned app may be listed in the app store.
20
21
  */
21
- private: boolean;
22
+ visibility: AppVisibility;
22
23
  /**
23
24
  * Whether or not clonable resources should be cloned from the template app.
24
25
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/types",
3
- "version": "0.19.7",
3
+ "version": "0.19.11",
4
4
  "description": "TypeScript definitions reused within Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -30,10 +30,10 @@
30
30
  "test": "jest"
31
31
  },
32
32
  "dependencies": {
33
- "@appsemble/sdk": "0.19.7",
33
+ "@appsemble/sdk": "0.19.11",
34
34
  "@fortawesome/fontawesome-common-types": "^0.2.0",
35
35
  "jsonschema": "^1.0.0",
36
- "openapi-types": "^9.0.0",
36
+ "openapi-types": "^10.0.0",
37
37
  "type-fest": "^2.0.0"
38
38
  }
39
39
  }