@sprucelabs/spruce-file-utils 18.1.19 → 18.3.0

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.
@@ -921,11 +921,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
921
921
  }
922
922
  }
923
923
  namespace SpruceSchemas.Files.v2022_05_13 {
924
- interface GetSettingsStatusEmitTarget {
924
+ interface SaveSettingsEmitTarget {
925
925
  'organizationId': string;
926
926
  }
927
- interface GetSettingsStatusEmitTargetSchema extends SpruceSchema.Schema {
928
- id: 'getSettingsStatusEmitTarget';
927
+ interface SaveSettingsEmitTargetSchema extends SpruceSchema.Schema {
928
+ id: 'saveSettingsEmitTarget';
929
929
  version: 'v2022_05_13';
930
930
  namespace: 'Files';
931
931
  name: '';
@@ -938,95 +938,134 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
938
938
  };
939
939
  };
940
940
  }
941
- interface GetSettingsStatusEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema> {
941
+ interface SaveSettingsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema> {
942
942
  }
943
943
  }
944
944
  namespace SpruceSchemas.Files.v2022_05_13 {
945
- interface GetSettingsStatusResponsePayload {
946
- 'didConfigureFileUploads': boolean;
945
+ interface SaveSettingsEmitPayload {
946
+ 'awsAccessKeyId': string;
947
+ 'awsSecretAccessKey': string;
948
+ 'awsS3Bucket': string;
947
949
  }
948
- interface GetSettingsStatusResponsePayloadSchema extends SpruceSchema.Schema {
949
- id: 'getSettingsStatusResponsePayload';
950
+ interface SaveSettingsEmitPayloadSchema extends SpruceSchema.Schema {
951
+ id: 'saveSettingsEmitPayload';
950
952
  version: 'v2022_05_13';
951
953
  namespace: 'Files';
952
954
  name: '';
953
955
  fields: {
954
956
  /** . */
955
- 'didConfigureFileUploads': {
956
- type: 'boolean';
957
+ 'awsAccessKeyId': {
958
+ type: 'id';
959
+ isRequired: true;
960
+ options: undefined;
961
+ };
962
+ /** . */
963
+ 'awsSecretAccessKey': {
964
+ type: 'text';
965
+ isRequired: true;
966
+ options: undefined;
967
+ };
968
+ /** . */
969
+ 'awsS3Bucket': {
970
+ type: 'text';
957
971
  isRequired: true;
958
972
  options: undefined;
959
973
  };
960
974
  };
961
975
  }
962
- interface GetSettingsStatusResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusResponsePayloadSchema> {
976
+ interface SaveSettingsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema> {
963
977
  }
964
978
  }
965
979
  namespace SpruceSchemas.Files.v2022_05_13 {
966
- interface SaveSettingsEmitTarget {
967
- 'organizationId': string;
980
+ interface SaveSettingsResponsePayload {
981
+ 'wasSuccessful': boolean;
968
982
  }
969
- interface SaveSettingsEmitTargetSchema extends SpruceSchema.Schema {
970
- id: 'saveSettingsEmitTarget';
983
+ interface SaveSettingsResponsePayloadSchema extends SpruceSchema.Schema {
984
+ id: 'saveSettingsResponsePayload';
971
985
  version: 'v2022_05_13';
972
986
  namespace: 'Files';
973
987
  name: '';
974
988
  fields: {
975
989
  /** . */
976
- 'organizationId': {
977
- type: 'id';
990
+ 'wasSuccessful': {
991
+ type: 'boolean';
978
992
  isRequired: true;
979
993
  options: undefined;
980
994
  };
981
995
  };
982
996
  }
983
- interface SaveSettingsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema> {
997
+ interface SaveSettingsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsResponsePayloadSchema> {
984
998
  }
985
999
  }
986
1000
  namespace SpruceSchemas.Files.v2022_05_13 {
987
- interface SaveSettingsEmitPayload {
988
- 'awsAccessKeyId': string;
989
- 'awsSecretAccessKey': string;
990
- 'awsS3Bucket': string;
1001
+ interface UploadEmitTarget {
1002
+ 'locationId'?: string | undefined | null;
1003
+ 'organizationId'?: string | undefined | null;
1004
+ 'filePersonId'?: string | undefined | null;
991
1005
  }
992
- interface SaveSettingsEmitPayloadSchema extends SpruceSchema.Schema {
993
- id: 'saveSettingsEmitPayload';
1006
+ interface UploadEmitTargetSchema extends SpruceSchema.Schema {
1007
+ id: 'uploadEmitTarget';
994
1008
  version: 'v2022_05_13';
995
1009
  namespace: 'Files';
996
1010
  name: '';
997
1011
  fields: {
998
1012
  /** . */
999
- 'awsAccessKeyId': {
1013
+ 'locationId': {
1000
1014
  type: 'id';
1001
- isRequired: true;
1002
1015
  options: undefined;
1003
1016
  };
1004
1017
  /** . */
1005
- 'awsSecretAccessKey': {
1018
+ 'organizationId': {
1019
+ type: 'id';
1020
+ options: undefined;
1021
+ };
1022
+ /** . */
1023
+ 'filePersonId': {
1024
+ type: 'text';
1025
+ options: undefined;
1026
+ };
1027
+ };
1028
+ }
1029
+ interface UploadEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema> {
1030
+ }
1031
+ }
1032
+ namespace SpruceSchemas.Files.v2022_05_13 {
1033
+ interface UploadEmitPayload {
1034
+ 'base64Body': string;
1035
+ 'name': string;
1036
+ }
1037
+ interface UploadEmitPayloadSchema extends SpruceSchema.Schema {
1038
+ id: 'uploadEmitPayload';
1039
+ version: 'v2022_05_13';
1040
+ namespace: 'Files';
1041
+ name: '';
1042
+ fields: {
1043
+ /** . */
1044
+ 'base64Body': {
1006
1045
  type: 'text';
1007
1046
  isRequired: true;
1008
1047
  options: undefined;
1009
1048
  };
1010
1049
  /** . */
1011
- 'awsS3Bucket': {
1050
+ 'name': {
1012
1051
  type: 'text';
1013
1052
  isRequired: true;
1014
1053
  options: undefined;
1015
1054
  };
1016
1055
  };
1017
1056
  }
1018
- interface SaveSettingsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema> {
1057
+ interface UploadEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema> {
1019
1058
  }
1020
1059
  }
1021
1060
  namespace SpruceSchemas.Files.v2022_05_13 {
1022
- interface SaveSettingsEmitTargetAndPayload {
1061
+ interface UploadEmitTargetAndPayload {
1023
1062
  /** Source. */
1024
1063
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1025
- 'target': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTarget;
1026
- 'payload': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayload;
1064
+ 'target'?: SpruceSchemas.Files.v2022_05_13.UploadEmitTarget | undefined | null;
1065
+ 'payload': SpruceSchemas.Files.v2022_05_13.UploadEmitPayload;
1027
1066
  }
1028
- interface SaveSettingsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1029
- id: 'saveSettingsEmitTargetAndPayload';
1067
+ interface UploadEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1068
+ id: 'uploadEmitTargetAndPayload';
1030
1069
  version: 'v2022_05_13';
1031
1070
  namespace: 'Files';
1032
1071
  name: '';
@@ -1042,9 +1081,8 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1042
1081
  /** . */
1043
1082
  'target': {
1044
1083
  type: 'schema';
1045
- isRequired: true;
1046
1084
  options: {
1047
- schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema;
1085
+ schema: SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema;
1048
1086
  };
1049
1087
  };
1050
1088
  /** . */
@@ -1052,33 +1090,12 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1052
1090
  type: 'schema';
1053
1091
  isRequired: true;
1054
1092
  options: {
1055
- schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema;
1093
+ schema: SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema;
1056
1094
  };
1057
1095
  };
1058
1096
  };
1059
1097
  }
1060
- interface SaveSettingsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetAndPayloadSchema> {
1061
- }
1062
- }
1063
- namespace SpruceSchemas.Files.v2022_05_13 {
1064
- interface SaveSettingsResponsePayload {
1065
- 'wasSuccessful': boolean;
1066
- }
1067
- interface SaveSettingsResponsePayloadSchema extends SpruceSchema.Schema {
1068
- id: 'saveSettingsResponsePayload';
1069
- version: 'v2022_05_13';
1070
- namespace: 'Files';
1071
- name: '';
1072
- fields: {
1073
- /** . */
1074
- 'wasSuccessful': {
1075
- type: 'boolean';
1076
- isRequired: true;
1077
- options: undefined;
1078
- };
1079
- };
1080
- }
1081
- interface SaveSettingsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsResponsePayloadSchema> {
1098
+ interface UploadEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetAndPayloadSchema> {
1082
1099
  }
1083
1100
  }
1084
1101
  namespace SpruceSchemas.Files.v2022_05_13 {
@@ -1104,13 +1121,14 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1104
1121
  }
1105
1122
  }
1106
1123
  namespace SpruceSchemas.Files.v2022_05_13 {
1107
- interface GetSettingsStatusEmitTargetAndPayload {
1124
+ interface SaveSettingsEmitTargetAndPayload {
1108
1125
  /** Source. */
1109
1126
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1110
- 'target': SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTarget;
1127
+ 'target': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTarget;
1128
+ 'payload': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayload;
1111
1129
  }
1112
- interface GetSettingsStatusEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1113
- id: 'getSettingsStatusEmitTargetAndPayload';
1130
+ interface SaveSettingsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1131
+ id: 'saveSettingsEmitTargetAndPayload';
1114
1132
  version: 'v2022_05_13';
1115
1133
  namespace: 'Files';
1116
1134
  name: '';
@@ -1128,83 +1146,51 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1128
1146
  type: 'schema';
1129
1147
  isRequired: true;
1130
1148
  options: {
1131
- schema: SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema;
1149
+ schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema;
1132
1150
  };
1133
1151
  };
1134
- };
1135
- }
1136
- interface GetSettingsStatusEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetAndPayloadSchema> {
1137
- }
1138
- }
1139
- namespace SpruceSchemas.Files.v2022_05_13 {
1140
- interface UploadEmitTarget {
1141
- 'locationId'?: string | undefined | null;
1142
- 'organizationId'?: string | undefined | null;
1143
- 'filePersonId'?: string | undefined | null;
1144
- }
1145
- interface UploadEmitTargetSchema extends SpruceSchema.Schema {
1146
- id: 'uploadEmitTarget';
1147
- version: 'v2022_05_13';
1148
- namespace: 'Files';
1149
- name: '';
1150
- fields: {
1151
- /** . */
1152
- 'locationId': {
1153
- type: 'id';
1154
- options: undefined;
1155
- };
1156
- /** . */
1157
- 'organizationId': {
1158
- type: 'id';
1159
- options: undefined;
1160
- };
1161
1152
  /** . */
1162
- 'filePersonId': {
1163
- type: 'text';
1164
- options: undefined;
1153
+ 'payload': {
1154
+ type: 'schema';
1155
+ isRequired: true;
1156
+ options: {
1157
+ schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema;
1158
+ };
1165
1159
  };
1166
1160
  };
1167
1161
  }
1168
- interface UploadEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema> {
1162
+ interface SaveSettingsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetAndPayloadSchema> {
1169
1163
  }
1170
1164
  }
1171
1165
  namespace SpruceSchemas.Files.v2022_05_13 {
1172
- interface UploadEmitPayload {
1173
- 'base64Body': string;
1174
- 'name': string;
1166
+ interface GetSettingsStatusEmitTarget {
1167
+ 'organizationId': string;
1175
1168
  }
1176
- interface UploadEmitPayloadSchema extends SpruceSchema.Schema {
1177
- id: 'uploadEmitPayload';
1169
+ interface GetSettingsStatusEmitTargetSchema extends SpruceSchema.Schema {
1170
+ id: 'getSettingsStatusEmitTarget';
1178
1171
  version: 'v2022_05_13';
1179
1172
  namespace: 'Files';
1180
1173
  name: '';
1181
1174
  fields: {
1182
1175
  /** . */
1183
- 'base64Body': {
1184
- type: 'text';
1185
- isRequired: true;
1186
- options: undefined;
1187
- };
1188
- /** . */
1189
- 'name': {
1190
- type: 'text';
1176
+ 'organizationId': {
1177
+ type: 'id';
1191
1178
  isRequired: true;
1192
1179
  options: undefined;
1193
1180
  };
1194
1181
  };
1195
1182
  }
1196
- interface UploadEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema> {
1183
+ interface GetSettingsStatusEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema> {
1197
1184
  }
1198
1185
  }
1199
1186
  namespace SpruceSchemas.Files.v2022_05_13 {
1200
- interface UploadEmitTargetAndPayload {
1187
+ interface GetSettingsStatusEmitTargetAndPayload {
1201
1188
  /** Source. */
1202
1189
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1203
- 'target'?: SpruceSchemas.Files.v2022_05_13.UploadEmitTarget | undefined | null;
1204
- 'payload': SpruceSchemas.Files.v2022_05_13.UploadEmitPayload;
1190
+ 'target': SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTarget;
1205
1191
  }
1206
- interface UploadEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1207
- id: 'uploadEmitTargetAndPayload';
1192
+ interface GetSettingsStatusEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1193
+ id: 'getSettingsStatusEmitTargetAndPayload';
1208
1194
  version: 'v2022_05_13';
1209
1195
  namespace: 'Files';
1210
1196
  name: '';
@@ -1220,21 +1206,35 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1220
1206
  /** . */
1221
1207
  'target': {
1222
1208
  type: 'schema';
1209
+ isRequired: true;
1223
1210
  options: {
1224
- schema: SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema;
1211
+ schema: SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema;
1225
1212
  };
1226
1213
  };
1214
+ };
1215
+ }
1216
+ interface GetSettingsStatusEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetAndPayloadSchema> {
1217
+ }
1218
+ }
1219
+ namespace SpruceSchemas.Files.v2022_05_13 {
1220
+ interface GetSettingsStatusResponsePayload {
1221
+ 'didConfigureFileUploads': boolean;
1222
+ }
1223
+ interface GetSettingsStatusResponsePayloadSchema extends SpruceSchema.Schema {
1224
+ id: 'getSettingsStatusResponsePayload';
1225
+ version: 'v2022_05_13';
1226
+ namespace: 'Files';
1227
+ name: '';
1228
+ fields: {
1227
1229
  /** . */
1228
- 'payload': {
1229
- type: 'schema';
1230
+ 'didConfigureFileUploads': {
1231
+ type: 'boolean';
1230
1232
  isRequired: true;
1231
- options: {
1232
- schema: SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema;
1233
- };
1233
+ options: undefined;
1234
1234
  };
1235
1235
  };
1236
1236
  }
1237
- interface UploadEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetAndPayloadSchema> {
1237
+ interface GetSettingsStatusResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusResponsePayloadSchema> {
1238
1238
  }
1239
1239
  }
1240
1240
  namespace SpruceSchemas.Files.v2022_05_13 {
@@ -921,11 +921,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
921
921
  }
922
922
  }
923
923
  namespace SpruceSchemas.Files.v2022_05_13 {
924
- interface GetSettingsStatusEmitTarget {
924
+ interface SaveSettingsEmitTarget {
925
925
  'organizationId': string;
926
926
  }
927
- interface GetSettingsStatusEmitTargetSchema extends SpruceSchema.Schema {
928
- id: 'getSettingsStatusEmitTarget';
927
+ interface SaveSettingsEmitTargetSchema extends SpruceSchema.Schema {
928
+ id: 'saveSettingsEmitTarget';
929
929
  version: 'v2022_05_13';
930
930
  namespace: 'Files';
931
931
  name: '';
@@ -938,95 +938,134 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
938
938
  };
939
939
  };
940
940
  }
941
- interface GetSettingsStatusEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema> {
941
+ interface SaveSettingsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema> {
942
942
  }
943
943
  }
944
944
  namespace SpruceSchemas.Files.v2022_05_13 {
945
- interface GetSettingsStatusResponsePayload {
946
- 'didConfigureFileUploads': boolean;
945
+ interface SaveSettingsEmitPayload {
946
+ 'awsAccessKeyId': string;
947
+ 'awsSecretAccessKey': string;
948
+ 'awsS3Bucket': string;
947
949
  }
948
- interface GetSettingsStatusResponsePayloadSchema extends SpruceSchema.Schema {
949
- id: 'getSettingsStatusResponsePayload';
950
+ interface SaveSettingsEmitPayloadSchema extends SpruceSchema.Schema {
951
+ id: 'saveSettingsEmitPayload';
950
952
  version: 'v2022_05_13';
951
953
  namespace: 'Files';
952
954
  name: '';
953
955
  fields: {
954
956
  /** . */
955
- 'didConfigureFileUploads': {
956
- type: 'boolean';
957
+ 'awsAccessKeyId': {
958
+ type: 'id';
959
+ isRequired: true;
960
+ options: undefined;
961
+ };
962
+ /** . */
963
+ 'awsSecretAccessKey': {
964
+ type: 'text';
965
+ isRequired: true;
966
+ options: undefined;
967
+ };
968
+ /** . */
969
+ 'awsS3Bucket': {
970
+ type: 'text';
957
971
  isRequired: true;
958
972
  options: undefined;
959
973
  };
960
974
  };
961
975
  }
962
- interface GetSettingsStatusResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusResponsePayloadSchema> {
976
+ interface SaveSettingsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema> {
963
977
  }
964
978
  }
965
979
  namespace SpruceSchemas.Files.v2022_05_13 {
966
- interface SaveSettingsEmitTarget {
967
- 'organizationId': string;
980
+ interface SaveSettingsResponsePayload {
981
+ 'wasSuccessful': boolean;
968
982
  }
969
- interface SaveSettingsEmitTargetSchema extends SpruceSchema.Schema {
970
- id: 'saveSettingsEmitTarget';
983
+ interface SaveSettingsResponsePayloadSchema extends SpruceSchema.Schema {
984
+ id: 'saveSettingsResponsePayload';
971
985
  version: 'v2022_05_13';
972
986
  namespace: 'Files';
973
987
  name: '';
974
988
  fields: {
975
989
  /** . */
976
- 'organizationId': {
977
- type: 'id';
990
+ 'wasSuccessful': {
991
+ type: 'boolean';
978
992
  isRequired: true;
979
993
  options: undefined;
980
994
  };
981
995
  };
982
996
  }
983
- interface SaveSettingsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema> {
997
+ interface SaveSettingsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsResponsePayloadSchema> {
984
998
  }
985
999
  }
986
1000
  namespace SpruceSchemas.Files.v2022_05_13 {
987
- interface SaveSettingsEmitPayload {
988
- 'awsAccessKeyId': string;
989
- 'awsSecretAccessKey': string;
990
- 'awsS3Bucket': string;
1001
+ interface UploadEmitTarget {
1002
+ 'locationId'?: string | undefined | null;
1003
+ 'organizationId'?: string | undefined | null;
1004
+ 'filePersonId'?: string | undefined | null;
991
1005
  }
992
- interface SaveSettingsEmitPayloadSchema extends SpruceSchema.Schema {
993
- id: 'saveSettingsEmitPayload';
1006
+ interface UploadEmitTargetSchema extends SpruceSchema.Schema {
1007
+ id: 'uploadEmitTarget';
994
1008
  version: 'v2022_05_13';
995
1009
  namespace: 'Files';
996
1010
  name: '';
997
1011
  fields: {
998
1012
  /** . */
999
- 'awsAccessKeyId': {
1013
+ 'locationId': {
1000
1014
  type: 'id';
1001
- isRequired: true;
1002
1015
  options: undefined;
1003
1016
  };
1004
1017
  /** . */
1005
- 'awsSecretAccessKey': {
1018
+ 'organizationId': {
1019
+ type: 'id';
1020
+ options: undefined;
1021
+ };
1022
+ /** . */
1023
+ 'filePersonId': {
1024
+ type: 'text';
1025
+ options: undefined;
1026
+ };
1027
+ };
1028
+ }
1029
+ interface UploadEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema> {
1030
+ }
1031
+ }
1032
+ namespace SpruceSchemas.Files.v2022_05_13 {
1033
+ interface UploadEmitPayload {
1034
+ 'base64Body': string;
1035
+ 'name': string;
1036
+ }
1037
+ interface UploadEmitPayloadSchema extends SpruceSchema.Schema {
1038
+ id: 'uploadEmitPayload';
1039
+ version: 'v2022_05_13';
1040
+ namespace: 'Files';
1041
+ name: '';
1042
+ fields: {
1043
+ /** . */
1044
+ 'base64Body': {
1006
1045
  type: 'text';
1007
1046
  isRequired: true;
1008
1047
  options: undefined;
1009
1048
  };
1010
1049
  /** . */
1011
- 'awsS3Bucket': {
1050
+ 'name': {
1012
1051
  type: 'text';
1013
1052
  isRequired: true;
1014
1053
  options: undefined;
1015
1054
  };
1016
1055
  };
1017
1056
  }
1018
- interface SaveSettingsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema> {
1057
+ interface UploadEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema> {
1019
1058
  }
1020
1059
  }
1021
1060
  namespace SpruceSchemas.Files.v2022_05_13 {
1022
- interface SaveSettingsEmitTargetAndPayload {
1061
+ interface UploadEmitTargetAndPayload {
1023
1062
  /** Source. */
1024
1063
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1025
- 'target': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTarget;
1026
- 'payload': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayload;
1064
+ 'target'?: SpruceSchemas.Files.v2022_05_13.UploadEmitTarget | undefined | null;
1065
+ 'payload': SpruceSchemas.Files.v2022_05_13.UploadEmitPayload;
1027
1066
  }
1028
- interface SaveSettingsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1029
- id: 'saveSettingsEmitTargetAndPayload';
1067
+ interface UploadEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1068
+ id: 'uploadEmitTargetAndPayload';
1030
1069
  version: 'v2022_05_13';
1031
1070
  namespace: 'Files';
1032
1071
  name: '';
@@ -1042,9 +1081,8 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1042
1081
  /** . */
1043
1082
  'target': {
1044
1083
  type: 'schema';
1045
- isRequired: true;
1046
1084
  options: {
1047
- schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema;
1085
+ schema: SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema;
1048
1086
  };
1049
1087
  };
1050
1088
  /** . */
@@ -1052,33 +1090,12 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1052
1090
  type: 'schema';
1053
1091
  isRequired: true;
1054
1092
  options: {
1055
- schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema;
1093
+ schema: SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema;
1056
1094
  };
1057
1095
  };
1058
1096
  };
1059
1097
  }
1060
- interface SaveSettingsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetAndPayloadSchema> {
1061
- }
1062
- }
1063
- namespace SpruceSchemas.Files.v2022_05_13 {
1064
- interface SaveSettingsResponsePayload {
1065
- 'wasSuccessful': boolean;
1066
- }
1067
- interface SaveSettingsResponsePayloadSchema extends SpruceSchema.Schema {
1068
- id: 'saveSettingsResponsePayload';
1069
- version: 'v2022_05_13';
1070
- namespace: 'Files';
1071
- name: '';
1072
- fields: {
1073
- /** . */
1074
- 'wasSuccessful': {
1075
- type: 'boolean';
1076
- isRequired: true;
1077
- options: undefined;
1078
- };
1079
- };
1080
- }
1081
- interface SaveSettingsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsResponsePayloadSchema> {
1098
+ interface UploadEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetAndPayloadSchema> {
1082
1099
  }
1083
1100
  }
1084
1101
  namespace SpruceSchemas.Files.v2022_05_13 {
@@ -1104,13 +1121,14 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1104
1121
  }
1105
1122
  }
1106
1123
  namespace SpruceSchemas.Files.v2022_05_13 {
1107
- interface GetSettingsStatusEmitTargetAndPayload {
1124
+ interface SaveSettingsEmitTargetAndPayload {
1108
1125
  /** Source. */
1109
1126
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1110
- 'target': SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTarget;
1127
+ 'target': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTarget;
1128
+ 'payload': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayload;
1111
1129
  }
1112
- interface GetSettingsStatusEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1113
- id: 'getSettingsStatusEmitTargetAndPayload';
1130
+ interface SaveSettingsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1131
+ id: 'saveSettingsEmitTargetAndPayload';
1114
1132
  version: 'v2022_05_13';
1115
1133
  namespace: 'Files';
1116
1134
  name: '';
@@ -1128,83 +1146,51 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1128
1146
  type: 'schema';
1129
1147
  isRequired: true;
1130
1148
  options: {
1131
- schema: SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema;
1149
+ schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema;
1132
1150
  };
1133
1151
  };
1134
- };
1135
- }
1136
- interface GetSettingsStatusEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetAndPayloadSchema> {
1137
- }
1138
- }
1139
- namespace SpruceSchemas.Files.v2022_05_13 {
1140
- interface UploadEmitTarget {
1141
- 'locationId'?: string | undefined | null;
1142
- 'organizationId'?: string | undefined | null;
1143
- 'filePersonId'?: string | undefined | null;
1144
- }
1145
- interface UploadEmitTargetSchema extends SpruceSchema.Schema {
1146
- id: 'uploadEmitTarget';
1147
- version: 'v2022_05_13';
1148
- namespace: 'Files';
1149
- name: '';
1150
- fields: {
1151
- /** . */
1152
- 'locationId': {
1153
- type: 'id';
1154
- options: undefined;
1155
- };
1156
- /** . */
1157
- 'organizationId': {
1158
- type: 'id';
1159
- options: undefined;
1160
- };
1161
1152
  /** . */
1162
- 'filePersonId': {
1163
- type: 'text';
1164
- options: undefined;
1153
+ 'payload': {
1154
+ type: 'schema';
1155
+ isRequired: true;
1156
+ options: {
1157
+ schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema;
1158
+ };
1165
1159
  };
1166
1160
  };
1167
1161
  }
1168
- interface UploadEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema> {
1162
+ interface SaveSettingsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetAndPayloadSchema> {
1169
1163
  }
1170
1164
  }
1171
1165
  namespace SpruceSchemas.Files.v2022_05_13 {
1172
- interface UploadEmitPayload {
1173
- 'base64Body': string;
1174
- 'name': string;
1166
+ interface GetSettingsStatusEmitTarget {
1167
+ 'organizationId': string;
1175
1168
  }
1176
- interface UploadEmitPayloadSchema extends SpruceSchema.Schema {
1177
- id: 'uploadEmitPayload';
1169
+ interface GetSettingsStatusEmitTargetSchema extends SpruceSchema.Schema {
1170
+ id: 'getSettingsStatusEmitTarget';
1178
1171
  version: 'v2022_05_13';
1179
1172
  namespace: 'Files';
1180
1173
  name: '';
1181
1174
  fields: {
1182
1175
  /** . */
1183
- 'base64Body': {
1184
- type: 'text';
1185
- isRequired: true;
1186
- options: undefined;
1187
- };
1188
- /** . */
1189
- 'name': {
1190
- type: 'text';
1176
+ 'organizationId': {
1177
+ type: 'id';
1191
1178
  isRequired: true;
1192
1179
  options: undefined;
1193
1180
  };
1194
1181
  };
1195
1182
  }
1196
- interface UploadEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema> {
1183
+ interface GetSettingsStatusEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema> {
1197
1184
  }
1198
1185
  }
1199
1186
  namespace SpruceSchemas.Files.v2022_05_13 {
1200
- interface UploadEmitTargetAndPayload {
1187
+ interface GetSettingsStatusEmitTargetAndPayload {
1201
1188
  /** Source. */
1202
1189
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1203
- 'target'?: SpruceSchemas.Files.v2022_05_13.UploadEmitTarget | undefined | null;
1204
- 'payload': SpruceSchemas.Files.v2022_05_13.UploadEmitPayload;
1190
+ 'target': SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTarget;
1205
1191
  }
1206
- interface UploadEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1207
- id: 'uploadEmitTargetAndPayload';
1192
+ interface GetSettingsStatusEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1193
+ id: 'getSettingsStatusEmitTargetAndPayload';
1208
1194
  version: 'v2022_05_13';
1209
1195
  namespace: 'Files';
1210
1196
  name: '';
@@ -1220,21 +1206,35 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1220
1206
  /** . */
1221
1207
  'target': {
1222
1208
  type: 'schema';
1209
+ isRequired: true;
1223
1210
  options: {
1224
- schema: SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema;
1211
+ schema: SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema;
1225
1212
  };
1226
1213
  };
1214
+ };
1215
+ }
1216
+ interface GetSettingsStatusEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetAndPayloadSchema> {
1217
+ }
1218
+ }
1219
+ namespace SpruceSchemas.Files.v2022_05_13 {
1220
+ interface GetSettingsStatusResponsePayload {
1221
+ 'didConfigureFileUploads': boolean;
1222
+ }
1223
+ interface GetSettingsStatusResponsePayloadSchema extends SpruceSchema.Schema {
1224
+ id: 'getSettingsStatusResponsePayload';
1225
+ version: 'v2022_05_13';
1226
+ namespace: 'Files';
1227
+ name: '';
1228
+ fields: {
1227
1229
  /** . */
1228
- 'payload': {
1229
- type: 'schema';
1230
+ 'didConfigureFileUploads': {
1231
+ type: 'boolean';
1230
1232
  isRequired: true;
1231
- options: {
1232
- schema: SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema;
1233
- };
1233
+ options: undefined;
1234
1234
  };
1235
1235
  };
1236
1236
  }
1237
- interface UploadEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetAndPayloadSchema> {
1237
+ interface GetSettingsStatusResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusResponsePayloadSchema> {
1238
1238
  }
1239
1239
  }
1240
1240
  namespace SpruceSchemas.Files.v2022_05_13 {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-file-utils",
3
3
  "description": "Utils for working with files and Sprucebot.",
4
- "version": "18.1.19",
4
+ "version": "18.3.0",
5
5
  "skill": {
6
6
  "namespace": "files"
7
7
  },