@memberjunction/ng-file-storage 2.1.5 → 2.2.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.
@@ -14,7 +14,7 @@ declare const FileUploadMutationSchema: z.ZodObject<{
14
14
  CreateFile: z.ZodObject<{
15
15
  NameExists: z.ZodBoolean;
16
16
  UploadUrl: z.ZodString;
17
- File: z.ZodObject<{
17
+ File: z.ZodObject<Omit<{
18
18
  ID: z.ZodString;
19
19
  Name: z.ZodString;
20
20
  Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -27,64 +27,64 @@ declare const FileUploadMutationSchema: z.ZodObject<{
27
27
  __mj_UpdatedAt: z.ZodDate;
28
28
  Category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  Provider: z.ZodString;
30
- }, "strip", z.ZodTypeAny, {
31
- Category?: string | undefined;
32
- ID?: string | undefined;
33
- __mj_CreatedAt?: Date | undefined;
34
- __mj_UpdatedAt?: Date | undefined;
35
- Name?: string | undefined;
36
- Description?: string | undefined;
37
- Status?: string | undefined;
38
- CategoryID?: string | undefined;
39
- ProviderID?: string | undefined;
40
- ContentType?: string | undefined;
41
- ProviderKey?: string | undefined;
42
- Provider?: string | undefined;
43
- }, {
44
- Category?: string | undefined;
45
- ID?: string | undefined;
46
- __mj_CreatedAt?: Date | undefined;
47
- __mj_UpdatedAt?: Date | undefined;
48
- Name?: string | undefined;
49
- Description?: string | undefined;
50
- Status?: string | undefined;
51
- CategoryID?: string | undefined;
52
- ProviderID?: string | undefined;
53
- ContentType?: string | undefined;
54
- ProviderKey?: string | undefined;
55
- Provider?: string | undefined;
56
- }>;
30
+ }, "__mj_CreatedAt" | "__mj_UpdatedAt">, "passthrough", z.ZodTypeAny, z.objectOutputType<Omit<{
31
+ ID: z.ZodString;
32
+ Name: z.ZodString;
33
+ Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ CategoryID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ ProviderID: z.ZodString;
36
+ ContentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ ProviderKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ Status: z.ZodString;
39
+ __mj_CreatedAt: z.ZodDate;
40
+ __mj_UpdatedAt: z.ZodDate;
41
+ Category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ Provider: z.ZodString;
43
+ }, "__mj_CreatedAt" | "__mj_UpdatedAt">, z.ZodTypeAny, "passthrough">, z.objectInputType<Omit<{
44
+ ID: z.ZodString;
45
+ Name: z.ZodString;
46
+ Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ CategoryID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ ProviderID: z.ZodString;
49
+ ContentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ ProviderKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ Status: z.ZodString;
52
+ __mj_CreatedAt: z.ZodDate;
53
+ __mj_UpdatedAt: z.ZodDate;
54
+ Category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ Provider: z.ZodString;
56
+ }, "__mj_CreatedAt" | "__mj_UpdatedAt">, z.ZodTypeAny, "passthrough">>;
57
57
  }, "strip", z.ZodTypeAny, {
58
58
  File: {
59
- Category?: string | undefined;
60
- ID?: string | undefined;
61
- __mj_CreatedAt?: Date | undefined;
62
- __mj_UpdatedAt?: Date | undefined;
63
- Name?: string | undefined;
64
- Description?: string | undefined;
65
- Status?: string | undefined;
66
- CategoryID?: string | undefined;
67
- ProviderID?: string | undefined;
68
- ContentType?: string | undefined;
69
- ProviderKey?: string | undefined;
70
- Provider?: string | undefined;
59
+ ID: string;
60
+ Name: string;
61
+ Status: string;
62
+ ProviderID: string;
63
+ Provider: string;
64
+ Category?: string | null | undefined;
65
+ Description?: string | null | undefined;
66
+ CategoryID?: string | null | undefined;
67
+ ContentType?: string | null | undefined;
68
+ ProviderKey?: string | null | undefined;
69
+ } & {
70
+ [k: string]: unknown;
71
71
  };
72
72
  NameExists: boolean;
73
73
  UploadUrl: string;
74
74
  }, {
75
75
  File: {
76
- Category?: string | undefined;
77
- ID?: string | undefined;
78
- __mj_CreatedAt?: Date | undefined;
79
- __mj_UpdatedAt?: Date | undefined;
80
- Name?: string | undefined;
81
- Description?: string | undefined;
82
- Status?: string | undefined;
83
- CategoryID?: string | undefined;
84
- ProviderID?: string | undefined;
85
- ContentType?: string | undefined;
86
- ProviderKey?: string | undefined;
87
- Provider?: string | undefined;
76
+ ID: string;
77
+ Name: string;
78
+ Status: string;
79
+ ProviderID: string;
80
+ Provider: string;
81
+ Category?: string | null | undefined;
82
+ Description?: string | null | undefined;
83
+ CategoryID?: string | null | undefined;
84
+ ContentType?: string | null | undefined;
85
+ ProviderKey?: string | null | undefined;
86
+ } & {
87
+ [k: string]: unknown;
88
88
  };
89
89
  NameExists: boolean;
90
90
  UploadUrl: string;
@@ -92,18 +92,18 @@ declare const FileUploadMutationSchema: z.ZodObject<{
92
92
  }, "strip", z.ZodTypeAny, {
93
93
  CreateFile: {
94
94
  File: {
95
- Category?: string | undefined;
96
- ID?: string | undefined;
97
- __mj_CreatedAt?: Date | undefined;
98
- __mj_UpdatedAt?: Date | undefined;
99
- Name?: string | undefined;
100
- Description?: string | undefined;
101
- Status?: string | undefined;
102
- CategoryID?: string | undefined;
103
- ProviderID?: string | undefined;
104
- ContentType?: string | undefined;
105
- ProviderKey?: string | undefined;
106
- Provider?: string | undefined;
95
+ ID: string;
96
+ Name: string;
97
+ Status: string;
98
+ ProviderID: string;
99
+ Provider: string;
100
+ Category?: string | null | undefined;
101
+ Description?: string | null | undefined;
102
+ CategoryID?: string | null | undefined;
103
+ ContentType?: string | null | undefined;
104
+ ProviderKey?: string | null | undefined;
105
+ } & {
106
+ [k: string]: unknown;
107
107
  };
108
108
  NameExists: boolean;
109
109
  UploadUrl: string;
@@ -111,18 +111,18 @@ declare const FileUploadMutationSchema: z.ZodObject<{
111
111
  }, {
112
112
  CreateFile: {
113
113
  File: {
114
- Category?: string | undefined;
115
- ID?: string | undefined;
116
- __mj_CreatedAt?: Date | undefined;
117
- __mj_UpdatedAt?: Date | undefined;
118
- Name?: string | undefined;
119
- Description?: string | undefined;
120
- Status?: string | undefined;
121
- CategoryID?: string | undefined;
122
- ProviderID?: string | undefined;
123
- ContentType?: string | undefined;
124
- ProviderKey?: string | undefined;
125
- Provider?: string | undefined;
114
+ ID: string;
115
+ Name: string;
116
+ Status: string;
117
+ ProviderID: string;
118
+ Provider: string;
119
+ Category?: string | null | undefined;
120
+ Description?: string | null | undefined;
121
+ CategoryID?: string | null | undefined;
122
+ ContentType?: string | null | undefined;
123
+ ProviderKey?: string | null | undefined;
124
+ } & {
125
+ [k: string]: unknown;
126
126
  };
127
127
  NameExists: boolean;
128
128
  UploadUrl: string;
@@ -70,7 +70,7 @@ const FileUploadMutationSchema = z.object({
70
70
  CreateFile: z.object({
71
71
  NameExists: z.boolean(),
72
72
  UploadUrl: z.string(),
73
- File: FileSchema,
73
+ File: FileSchema.omit({ __mj_CreatedAt: true, __mj_UpdatedAt: true }).passthrough(),
74
74
  }),
75
75
  });
76
76
  export class FileUploadComponent {
@@ -153,7 +153,7 @@ export class FileUploadComponent {
153
153
  }
154
154
  }
155
155
  else {
156
- console.error('The API returned an unexpected result', parsedResult.error);
156
+ console.error('The API returned an unexpected result', parsedResult.error.issues);
157
157
  this.fileUpload.emit({ success: false, file });
158
158
  }
159
159
  file = this.UploadQueue.shift();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-file-storage",
3
- "version": "2.1.5",
3
+ "version": "2.2.1",
4
4
  "description": "MemberJunction: Angular components for managing files, and related components.",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -26,12 +26,12 @@
26
26
  "@angular/router": "18.0.2"
27
27
  },
28
28
  "dependencies": {
29
- "@memberjunction/core": "2.1.5",
30
- "@memberjunction/core-entities": "2.1.5",
31
- "@memberjunction/global": "2.1.5",
32
- "@memberjunction/graphql-dataprovider": "2.1.5",
33
- "@memberjunction/ng-container-directives": "2.1.5",
34
- "@memberjunction/ng-shared": "2.1.5",
29
+ "@memberjunction/core": "2.2.1",
30
+ "@memberjunction/core-entities": "2.2.1",
31
+ "@memberjunction/global": "2.2.1",
32
+ "@memberjunction/graphql-dataprovider": "2.2.1",
33
+ "@memberjunction/ng-container-directives": "2.2.1",
34
+ "@memberjunction/ng-shared": "2.2.1",
35
35
  "@progress/kendo-angular-buttons": "16.2.0",
36
36
  "@progress/kendo-angular-dialog": "16.2.0",
37
37
  "@progress/kendo-angular-dropdowns": "16.2.0",