@appsemble/lang-sdk 0.36.10-test.4 → 0.36.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/lang-sdk",
3
- "version": "0.36.10-test.4",
3
+ "version": "0.36.10",
4
4
  "description": "Language SDK for Appsemble",
5
5
  "keywords": [
6
6
  "app",
@@ -13,6 +13,10 @@ export const ResourceCountActionDefinition = extendJSONSchema(RequestActionDefin
13
13
  type: 'string',
14
14
  description: 'The type of the resource to count.',
15
15
  },
16
+ selectedGroupId: {
17
+ $ref: '#/components/schemas/RemapperDefinition',
18
+ description: 'The ID of the group to scope the request to. Defaults to the currently selected group.',
19
+ },
16
20
  own: {
17
21
  type: 'boolean',
18
22
  description: 'If only the resources created by the authenticated app member should be included',
@@ -13,6 +13,10 @@ export const ResourceCreateActionDefinition = extendJSONSchema(RequestActionDefi
13
13
  type: 'string',
14
14
  description: 'The type of the resource to create.',
15
15
  },
16
+ selectedGroupId: {
17
+ $ref: '#/components/schemas/RemapperDefinition',
18
+ description: 'The ID of the group to scope the request to. Defaults to the currently selected group.',
19
+ },
16
20
  },
17
21
  }, ['url', 'method']);
18
22
  //# sourceMappingURL=ResourceCreateActionDefinition.js.map
@@ -13,6 +13,10 @@ export const ResourceDeleteActionDefinition = extendJSONSchema(RequestActionDefi
13
13
  type: 'string',
14
14
  description: 'The type of the resource to delete.',
15
15
  },
16
+ selectedGroupId: {
17
+ $ref: '#/components/schemas/RemapperDefinition',
18
+ description: 'The ID of the group to scope the request to. Defaults to the currently selected group.',
19
+ },
16
20
  },
17
21
  }, ['url', 'method']);
18
22
  //# sourceMappingURL=ResourceDeleteActionDefinition.js.map
@@ -16,6 +16,10 @@ export const ResourceDeleteAllActionDefinition = extendJSONSchema(RequestActionD
16
16
  type: 'string',
17
17
  description: 'The type of the resource to delete.',
18
18
  },
19
+ selectedGroupId: {
20
+ $ref: '#/components/schemas/RemapperDefinition',
21
+ description: 'The ID of the group to scope the request to. Defaults to the currently selected group.',
22
+ },
19
23
  },
20
24
  }, ['url', 'method']);
21
25
  //# sourceMappingURL=ResourceDeleteAllActionDefinition.js.map
@@ -13,6 +13,10 @@ export const ResourceDeleteBulkActionDefinition = extendJSONSchema(RequestAction
13
13
  type: 'string',
14
14
  description: 'The type of the resource to delete.',
15
15
  },
16
+ selectedGroupId: {
17
+ $ref: '#/components/schemas/RemapperDefinition',
18
+ description: 'The ID of the group to scope the request to. Defaults to the currently selected group.',
19
+ },
16
20
  },
17
21
  }, ['url', 'method']);
18
22
  //# sourceMappingURL=ResourceDeleteBulkActionDefinition.js.map
@@ -13,6 +13,10 @@ export const ResourceGetActionDefinition = extendJSONSchema(RequestActionDefinit
13
13
  type: 'string',
14
14
  description: 'The type of the resource to get.',
15
15
  },
16
+ selectedGroupId: {
17
+ $ref: '#/components/schemas/RemapperDefinition',
18
+ description: 'The ID of the group to scope the request to. Defaults to the currently selected group.',
19
+ },
16
20
  view: {
17
21
  type: 'string',
18
22
  description: 'The view to use for the resource.',
@@ -13,6 +13,10 @@ export const ResourceHistoryGetActionDefinition = extendJSONSchema(RequestAction
13
13
  type: 'string',
14
14
  description: 'The type of the resource to get.',
15
15
  },
16
+ selectedGroupId: {
17
+ $ref: '#/components/schemas/RemapperDefinition',
18
+ description: 'The ID of the group to scope the request to. Defaults to the currently selected group.',
19
+ },
16
20
  },
17
21
  }, ['url']);
18
22
  //# sourceMappingURL=ResourceHistoryGetActionDefinition.js.map
@@ -13,6 +13,10 @@ export const ResourcePatchActionDefinition = extendJSONSchema(RequestActionDefin
13
13
  type: 'string',
14
14
  description: 'The type of the resource to patch.',
15
15
  },
16
+ selectedGroupId: {
17
+ $ref: '#/components/schemas/RemapperDefinition',
18
+ description: 'The ID of the group to scope the request to. Defaults to the currently selected group.',
19
+ },
16
20
  id: {
17
21
  $ref: '#/components/schemas/RemapperDefinition',
18
22
  },
@@ -13,6 +13,10 @@ export const ResourceQueryActionDefinition = extendJSONSchema(RequestActionDefin
13
13
  type: 'string',
14
14
  description: 'The type of the resource to query.',
15
15
  },
16
+ selectedGroupId: {
17
+ $ref: '#/components/schemas/RemapperDefinition',
18
+ description: 'The ID of the group to scope the request to. Defaults to the currently selected group.',
19
+ },
16
20
  view: {
17
21
  type: 'string',
18
22
  description: 'The view to use for the resource.',
@@ -13,6 +13,10 @@ export const ResourceUpdateActionDefinition = extendJSONSchema(RequestActionDefi
13
13
  type: 'string',
14
14
  description: 'The type of the resource to update.',
15
15
  },
16
+ selectedGroupId: {
17
+ $ref: '#/components/schemas/RemapperDefinition',
18
+ description: 'The ID of the group to scope the request to. Defaults to the currently selected group.',
19
+ },
16
20
  },
17
21
  }, ['url', 'method']);
18
22
  //# sourceMappingURL=ResourceUpdateActionDefinition.js.map
@@ -13,6 +13,10 @@ export const ResourceUpdateGroupActionDefinition = extendJSONSchema(RequestActio
13
13
  type: 'string',
14
14
  description: 'The type of the resource to move.',
15
15
  },
16
+ selectedGroupId: {
17
+ $ref: '#/components/schemas/RemapperDefinition',
18
+ description: 'The ID of the group to scope the request to. Defaults to the currently selected group.',
19
+ },
16
20
  id: {
17
21
  $ref: '#/components/schemas/RemapperDefinition',
18
22
  description: 'The ID of the resource to move.',
@@ -13,9 +13,18 @@ export const ResourceUpdatePositionsActionDefinition = extendJSONSchema(RequestA
13
13
  type: 'string',
14
14
  description: 'The type of the resource to update.',
15
15
  },
16
+ selectedGroupId: {
17
+ $ref: '#/components/schemas/RemapperDefinition',
18
+ description: 'The ID of the group to scope the request to. Defaults to the currently selected group.',
19
+ },
16
20
  id: {
17
21
  $ref: '#/components/schemas/RemapperDefinition',
18
22
  },
23
+ order: {
24
+ type: 'string',
25
+ enum: ['asc', 'desc'],
26
+ default: 'asc',
27
+ },
19
28
  },
20
29
  }, ['url', 'method']);
21
30
  //# sourceMappingURL=ResourceUpdatePositionsActionDefinition.js.map
@@ -532,6 +532,13 @@ export interface ResourceActionDefinition<T extends ActionName> extends RequestL
532
532
  * The name of the resource.
533
533
  */
534
534
  resource: string;
535
+ /**
536
+ * The ID of the group to scope the request to.
537
+ *
538
+ * Defaults to the `selectedGroupId` input property, or the app member's currently selected
539
+ * group when the property is not present.
540
+ */
541
+ selectedGroupId?: Remapper;
535
542
  }
536
543
  interface ViewResourceDefinition {
537
544
  /**
@@ -551,6 +558,12 @@ interface ResourceActionWithIdDefinition {
551
558
  */
552
559
  id?: Remapper;
553
560
  }
561
+ interface ResourceOrderQueryDefinition {
562
+ /**
563
+ * Whether the resources loaded are in descending order.
564
+ */
565
+ order?: 'asc' | 'desc';
566
+ }
554
567
  export interface ControllerActionDefinition extends BaseActionDefinition<'controller'> {
555
568
  handler: string;
556
569
  }
@@ -567,7 +580,7 @@ export type ResourceUpdateActionDefinition = ResourceActionDefinition<'resource.
567
580
  export type ResourceUpdateGroupActionDefinition = ResourceActionDefinition<'resource.update.group'> & ResourceActionWithIdDefinition & {
568
581
  groupId?: Remapper;
569
582
  };
570
- export type ResourceUpdatePositionsActionDefinition = ResourceActionDefinition<'resource.update.positions'> & ResourceActionWithIdDefinition;
583
+ export type ResourceUpdatePositionsActionDefinition = ResourceActionDefinition<'resource.update.positions'> & ResourceActionWithIdDefinition & ResourceOrderQueryDefinition;
571
584
  export type ResourcePatchActionDefinition = ResourceActionDefinition<'resource.patch'> & ResourceActionWithIdDefinition;
572
585
  export type AppMemberLogoutAction = BaseActionDefinition<'app.member.logout'>;
573
586
  export interface BaseResourceSubscribeActionDefinition<T extends ActionName> extends BaseActionDefinition<T> {