@appsemble/utils 0.34.15 → 0.34.18-test.1

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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.34.15/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.34.18-test.1/config/assets/logo.svg) Appsemble Utilities
2
2
 
3
3
  > Internal utility functions used across multiple Appsemble projects.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/utils)](https://www.npmjs.com/package/@appsemble/utils)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.34.15/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.34.15)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.34.18-test.1/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.34.18-test.1)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
9
  ## Table of Contents
@@ -26,5 +26,5 @@ not guaranteed.
26
26
 
27
27
  ## License
28
28
 
29
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.34.15/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.34.18-test.1/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
@@ -24,5 +24,68 @@ export const pathItems = {
24
24
  },
25
25
  },
26
26
  },
27
+ post: {
28
+ tags: ['main', 'seed-app-members', 'demo-member', 'app'],
29
+ description: 'Seed demo app members from the cli.',
30
+ operationId: 'seedDemoAppMembers',
31
+ requestBody: {
32
+ required: true,
33
+ content: {
34
+ 'application/json': {
35
+ schema: {
36
+ type: 'array',
37
+ additionalProperties: false,
38
+ items: {
39
+ type: 'object',
40
+ required: ['name', 'role'],
41
+ properties: {
42
+ name: {
43
+ type: 'string',
44
+ },
45
+ role: {
46
+ type: 'string',
47
+ },
48
+ properties: {
49
+ type: 'object',
50
+ additionalProperties: { type: 'string' },
51
+ description: 'The member’s custom properties.',
52
+ },
53
+ timezone: {
54
+ enum: Intl.supportedValuesOf('timeZone'),
55
+ },
56
+ },
57
+ },
58
+ },
59
+ },
60
+ },
61
+ },
62
+ responses: {
63
+ 200: {
64
+ description: 'The list of created app members',
65
+ content: {
66
+ 'application/json': {
67
+ schema: {
68
+ type: 'array',
69
+ items: {
70
+ $ref: '#/components/schemas/AppMemberInfo',
71
+ },
72
+ },
73
+ },
74
+ },
75
+ },
76
+ },
77
+ security: [{ cli: ['apps:write'] }],
78
+ },
79
+ delete: {
80
+ description: 'Delete all seed app members for an app',
81
+ tags: ['main', 'app', 'demo-member', 'delete'],
82
+ operationId: 'deleteSeedAppMembers',
83
+ responses: {
84
+ 204: {
85
+ description: 'The seed app members have been deleted successfully',
86
+ },
87
+ },
88
+ security: [{ cli: ['apps:write'] }],
89
+ },
27
90
  };
28
91
  //# sourceMappingURL=demo-members.js.map
package/assets.d.ts CHANGED
@@ -17,9 +17,9 @@ export declare enum MimeTypeCategory {
17
17
  * @returns A category that the mimetype falls into or null if no category is found
18
18
  */
19
19
  export declare function getMimeTypeCategory(mimeType: string): MimeTypeCategory | null;
20
- export declare function getMimeTypeCategories(mimeTypes: string[]): MimeTypeCategory[];
20
+ export declare function getMimeTypeCategories(mimeTypes: string[]): (MimeTypeCategory | null)[];
21
21
  export type FileIconName = IconName | `file-${string}`;
22
- export declare function getMimeTypeIcon(category: MimeTypeCategory): FileIconName;
22
+ export declare function getMimeTypeIcon(category: MimeTypeCategory | null): FileIconName;
23
23
  /**
24
24
  * Extracts the filename from a Content-Disposition header string.
25
25
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/utils",
3
- "version": "0.34.15",
3
+ "version": "0.34.18-test.1",
4
4
  "description": "Utility functions used in Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -39,8 +39,8 @@
39
39
  "test": "vitest"
40
40
  },
41
41
  "dependencies": {
42
- "@appsemble/types": "0.34.15",
43
- "@appsemble/lang-sdk": "0.34.15",
42
+ "@appsemble/types": "0.34.18-test.1",
43
+ "@appsemble/lang-sdk": "0.34.18-test.1",
44
44
  "@odata/parser": "^0.2.14",
45
45
  "axios": "^1.0.0",
46
46
  "cron-parser": "^4.0.0",