pyrus-api 2.4.0 → 2.4.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/build/types/index.d.ts +7 -6
- package/package.json +1 -1
package/build/types/index.d.ts
CHANGED
|
@@ -547,16 +547,17 @@ declare module "pyrus-api" {
|
|
|
547
547
|
fields?: FormField[];
|
|
548
548
|
};
|
|
549
549
|
export type HTTPMethod = "GET" | "POST" | "PUT" | "DELETE";
|
|
550
|
-
export type
|
|
550
|
+
export type IdRequired = {
|
|
551
551
|
id: number;
|
|
552
552
|
};
|
|
553
|
-
export type
|
|
554
|
-
id: number;
|
|
555
|
-
} | {
|
|
553
|
+
export type CodeRequired = {
|
|
556
554
|
code: string;
|
|
557
555
|
};
|
|
558
|
-
export type
|
|
559
|
-
export type
|
|
556
|
+
export type ById = IdRequired;
|
|
557
|
+
export type IdOrCodeRequired = IdRequired | CodeRequired;
|
|
558
|
+
export type FormFieldCommon = FormFieldAuthor | FormFieldCatalog | FormFieldCheckmark | FormFieldCreateDate | FormFieldDate | FormFieldDueDate | FormFieldDueDateTime | FormFieldEmail | FormFieldFile | FormFieldFlag | FormFieldFormLink | FormFieldMoney | FormFieldMultipleChoice | FormFieldNewFile | FormFieldNote | FormFieldNumber | FormFieldPerson | FormFieldPhone | FormFieldProject | FormFieldStatus | FormFieldStep | FormFieldTable | FormFieldText | FormFieldTime | FormFieldTitle;
|
|
559
|
+
export type FormField = FormFieldCommon & IdRequired;
|
|
560
|
+
export type FormFieldIdentified = FormFieldCommon & IdOrCodeRequired;
|
|
560
561
|
const ChannelType: {
|
|
561
562
|
readonly Email: "email";
|
|
562
563
|
readonly Telegram: "telegram";
|