@firmenakte/api-client 2.35.0 → 2.37.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.
- package/client.d.ts +2 -1
- package/client.d.ts.map +1 -1
- package/client.js +1 -0
- package/package.json +1 -1
- package/v2/generated/index.d.ts +1 -1
- package/v2/generated/index.d.ts.map +1 -1
- package/v2/generated/sdk.gen.d.ts +72 -6
- package/v2/generated/sdk.gen.d.ts.map +1 -1
- package/v2/generated/sdk.gen.js +153 -5
- package/v2/generated/types.gen.d.ts +991 -9
- package/v2/generated/types.gen.d.ts.map +1 -1
|
@@ -13,6 +13,10 @@ export type AccountLiability = {
|
|
|
13
13
|
amount: number;
|
|
14
14
|
after: string;
|
|
15
15
|
};
|
|
16
|
+
export type AddLetterAttachmentBody = {
|
|
17
|
+
fileName: string;
|
|
18
|
+
contentBase64: string;
|
|
19
|
+
};
|
|
16
20
|
export type AddressCoordinatesResponse = {
|
|
17
21
|
lat: number;
|
|
18
22
|
lng: number;
|
|
@@ -623,6 +627,13 @@ export type CompanyLicense = {
|
|
|
623
627
|
lastSeen?: null | string;
|
|
624
628
|
dormantSince?: null | string;
|
|
625
629
|
};
|
|
630
|
+
export type CompanyLogoDto = {
|
|
631
|
+
url: string;
|
|
632
|
+
width: number;
|
|
633
|
+
height: number;
|
|
634
|
+
source: SourceKey;
|
|
635
|
+
asOf: string;
|
|
636
|
+
};
|
|
626
637
|
export type CompanyMatchCandidate = {
|
|
627
638
|
id: string;
|
|
628
639
|
name: string;
|
|
@@ -775,6 +786,7 @@ export type CompanyResponse = {
|
|
|
775
786
|
websites: Array<string>;
|
|
776
787
|
webPresence?: null | Array<CompanyWebsite>;
|
|
777
788
|
profile?: null | CompanyProfileDto;
|
|
789
|
+
logo?: null | CompanyLogoDto;
|
|
778
790
|
uidVerifications?: null | Array<CompanyUidVerification>;
|
|
779
791
|
signerCount?: null | number;
|
|
780
792
|
insolvency: CompanyInsolvency;
|
|
@@ -1025,6 +1037,22 @@ export type CreateImportDto = {
|
|
|
1025
1037
|
[key: string]: string;
|
|
1026
1038
|
}>;
|
|
1027
1039
|
};
|
|
1040
|
+
export type CreateLetterRequest = {
|
|
1041
|
+
senderCompanyId?: null | string;
|
|
1042
|
+
subject?: null | string;
|
|
1043
|
+
body?: null | string;
|
|
1044
|
+
qrUrl?: null | string;
|
|
1045
|
+
/**
|
|
1046
|
+
* The bold line in the QR field; takes the same variables as the text. Empty prints „Mehr erfahren“.
|
|
1047
|
+
*/
|
|
1048
|
+
qrText?: null | string;
|
|
1049
|
+
advertising?: null | boolean;
|
|
1050
|
+
recipients?: null | Array<LetterRecipientRef>;
|
|
1051
|
+
/**
|
|
1052
|
+
* Brief ID to copy.
|
|
1053
|
+
*/
|
|
1054
|
+
from?: null | string;
|
|
1055
|
+
};
|
|
1028
1056
|
export type CreateListDto = {
|
|
1029
1057
|
name: string;
|
|
1030
1058
|
color?: null | string;
|
|
@@ -1176,6 +1204,16 @@ export type CursorPageOfImportRowDto = {
|
|
|
1176
1204
|
nextCursor?: null | string;
|
|
1177
1205
|
total?: null | number;
|
|
1178
1206
|
};
|
|
1207
|
+
export type CursorPageOfLetterSendingDto = {
|
|
1208
|
+
items: Array<LetterSendingDto>;
|
|
1209
|
+
nextCursor?: null | string;
|
|
1210
|
+
total?: null | number;
|
|
1211
|
+
};
|
|
1212
|
+
export type CursorPageOfLetterSummaryDto = {
|
|
1213
|
+
items: Array<LetterSummaryDto>;
|
|
1214
|
+
nextCursor?: null | string;
|
|
1215
|
+
total?: null | number;
|
|
1216
|
+
};
|
|
1179
1217
|
export type CursorPageOfListDto = {
|
|
1180
1218
|
items: Array<ListDto>;
|
|
1181
1219
|
nextCursor?: null | string;
|
|
@@ -1422,6 +1460,7 @@ export type EntityResponseCompanyResponse = {
|
|
|
1422
1460
|
websites: Array<string>;
|
|
1423
1461
|
webPresence?: null | Array<CompanyWebsite>;
|
|
1424
1462
|
profile?: null | CompanyProfileDto;
|
|
1463
|
+
logo?: null | CompanyLogoDto;
|
|
1425
1464
|
uidVerifications?: null | Array<CompanyUidVerification>;
|
|
1426
1465
|
signerCount?: null | number;
|
|
1427
1466
|
insolvency: CompanyInsolvency;
|
|
@@ -1469,6 +1508,7 @@ export type EntitySearchItem = {
|
|
|
1469
1508
|
identifiers: Array<RegisterIdentifier>;
|
|
1470
1509
|
isDeleted?: null | boolean;
|
|
1471
1510
|
ref?: null | string;
|
|
1511
|
+
match?: null | string;
|
|
1472
1512
|
};
|
|
1473
1513
|
export type EntitySearchPage = {
|
|
1474
1514
|
items: Array<EntitySearchItem>;
|
|
@@ -1795,6 +1835,278 @@ export type InsolvencyProceeding = {
|
|
|
1795
1835
|
};
|
|
1796
1836
|
export type InsolvencyProceedingStatus = 'open' | 'closed' | 'uncertain';
|
|
1797
1837
|
export type InsolvencyProceedingType = 'bankruptcy' | 'restructuringWithSelfAdministration' | 'restructuringWithoutSelfAdministration';
|
|
1838
|
+
export type LetterAttachmentDto = {
|
|
1839
|
+
id: string;
|
|
1840
|
+
fileName: string;
|
|
1841
|
+
pages: number;
|
|
1842
|
+
grayscale: boolean;
|
|
1843
|
+
};
|
|
1844
|
+
export type LetterBlockDto = {
|
|
1845
|
+
kind: string;
|
|
1846
|
+
spans: Array<LetterSpanDto>;
|
|
1847
|
+
number?: null | number;
|
|
1848
|
+
};
|
|
1849
|
+
export type LetterCountDto = {
|
|
1850
|
+
reason: string;
|
|
1851
|
+
count: number;
|
|
1852
|
+
};
|
|
1853
|
+
export type LetterDto = {
|
|
1854
|
+
id: string;
|
|
1855
|
+
/**
|
|
1856
|
+
* draft (nothing went out), running (an ongoing list sends to its new entries), paused (its ongoing lists send nothing until resumed) or sent.
|
|
1857
|
+
*/
|
|
1858
|
+
status: string;
|
|
1859
|
+
senderCompanyId?: null | string;
|
|
1860
|
+
senderName?: null | string;
|
|
1861
|
+
subject: string;
|
|
1862
|
+
body: string;
|
|
1863
|
+
qrUrl?: null | string;
|
|
1864
|
+
advertising: boolean;
|
|
1865
|
+
recipients: Array<LetterRecipientDto>;
|
|
1866
|
+
attachments: Array<LetterAttachmentDto>;
|
|
1867
|
+
version: number;
|
|
1868
|
+
creditsPerLetter: number;
|
|
1869
|
+
sheets: number;
|
|
1870
|
+
sentCount: number;
|
|
1871
|
+
/**
|
|
1872
|
+
* Letters Pingen reports as delivered.
|
|
1873
|
+
*/
|
|
1874
|
+
deliveredCount: number;
|
|
1875
|
+
queuedCount: number;
|
|
1876
|
+
scannedCount: number;
|
|
1877
|
+
/**
|
|
1878
|
+
* What {{ich.name}} prints: the profile name of who last edited the Brief; it stays while the Brief runs.
|
|
1879
|
+
*/
|
|
1880
|
+
authorName?: null | string;
|
|
1881
|
+
createdAt: string;
|
|
1882
|
+
changedAt: string;
|
|
1883
|
+
/**
|
|
1884
|
+
* Running or paused: companies in An without a letter of this Brief yet (picked companies, once lists and lists not yet running). A send reaches only them.
|
|
1885
|
+
*/
|
|
1886
|
+
newRecipients?: number;
|
|
1887
|
+
/**
|
|
1888
|
+
* The bold line in the QR field with its variables; null prints „Mehr erfahren“.
|
|
1889
|
+
*/
|
|
1890
|
+
qrText?: null | string;
|
|
1891
|
+
};
|
|
1892
|
+
export type LetterPlanDto = {
|
|
1893
|
+
letterId: string;
|
|
1894
|
+
letterSubject: string;
|
|
1895
|
+
senderName?: null | string;
|
|
1896
|
+
sentBy: string;
|
|
1897
|
+
recipients: number;
|
|
1898
|
+
skipped: Array<LetterCountDto>;
|
|
1899
|
+
neutral: Array<LetterCountDto>;
|
|
1900
|
+
fallbacks: Array<LetterCountDto>;
|
|
1901
|
+
sending: number;
|
|
1902
|
+
creditsPerLetter: number;
|
|
1903
|
+
credits: number;
|
|
1904
|
+
fromWeekly: number;
|
|
1905
|
+
fromBalance: number;
|
|
1906
|
+
weeklyLettersLeft: number;
|
|
1907
|
+
balance: number;
|
|
1908
|
+
affordable: boolean;
|
|
1909
|
+
examples: Array<string>;
|
|
1910
|
+
thumbnail?: null | string;
|
|
1911
|
+
/**
|
|
1912
|
+
* Letters of this Brief to lists' new entries that wait for the budget, the workspace limit or credits.
|
|
1913
|
+
*/
|
|
1914
|
+
waiting?: number;
|
|
1915
|
+
/**
|
|
1916
|
+
* Lists this send starts Laufend (ongoing): after it every company that enters one gets the Brief, within that list's budget. Lists already running or paused are not counted.
|
|
1917
|
+
*/
|
|
1918
|
+
ongoingLists?: number;
|
|
1919
|
+
};
|
|
1920
|
+
export type LetterPreviewDto = {
|
|
1921
|
+
index: number;
|
|
1922
|
+
total: number;
|
|
1923
|
+
companyId?: null | string;
|
|
1924
|
+
companyName?: null | string;
|
|
1925
|
+
sender?: null | LetterSenderDto;
|
|
1926
|
+
addressLines: Array<string>;
|
|
1927
|
+
placeDate: string;
|
|
1928
|
+
subject: Array<LetterSpanDto>;
|
|
1929
|
+
blocks: Array<LetterBlockDto>;
|
|
1930
|
+
qrUrl?: null | string;
|
|
1931
|
+
addressSheet: boolean;
|
|
1932
|
+
salutation?: null | string;
|
|
1933
|
+
neutralReason?: null | string;
|
|
1934
|
+
skipReason?: null | string;
|
|
1935
|
+
pages: number;
|
|
1936
|
+
sheets: number;
|
|
1937
|
+
attachments: number;
|
|
1938
|
+
creditsPerLetter: number;
|
|
1939
|
+
/**
|
|
1940
|
+
* The bold line of the QR field with its values; null without a QR code.
|
|
1941
|
+
*/
|
|
1942
|
+
qrText?: null | string;
|
|
1943
|
+
};
|
|
1944
|
+
export type LetterPricesDto = {
|
|
1945
|
+
letter: number;
|
|
1946
|
+
attachment: number;
|
|
1947
|
+
sheet: number;
|
|
1948
|
+
weeklySharePercent: number;
|
|
1949
|
+
};
|
|
1950
|
+
export type LetterRecipientDto = {
|
|
1951
|
+
kind: string;
|
|
1952
|
+
id: string;
|
|
1953
|
+
label: string;
|
|
1954
|
+
count?: null | number;
|
|
1955
|
+
/**
|
|
1956
|
+
* A company's address in one line.
|
|
1957
|
+
*/
|
|
1958
|
+
address?: null | string;
|
|
1959
|
+
/**
|
|
1960
|
+
* Lists only: once or ongoing.
|
|
1961
|
+
*/
|
|
1962
|
+
mode?: null | string;
|
|
1963
|
+
/**
|
|
1964
|
+
* Lists only: the budget in credits per budgetPeriod; null is none.
|
|
1965
|
+
*/
|
|
1966
|
+
budgetCredits?: null | number;
|
|
1967
|
+
/**
|
|
1968
|
+
* Lists only: day, week or month.
|
|
1969
|
+
*/
|
|
1970
|
+
budgetPeriod?: null | string;
|
|
1971
|
+
/**
|
|
1972
|
+
* Lists only: queue or drop.
|
|
1973
|
+
*/
|
|
1974
|
+
overflow?: null | string;
|
|
1975
|
+
/**
|
|
1976
|
+
* Lists only: the Brief sends to the list's new entries now (an ongoing list after a send).
|
|
1977
|
+
*/
|
|
1978
|
+
running?: boolean;
|
|
1979
|
+
/**
|
|
1980
|
+
* Lists only: why sending to new entries is paused: user (paused in the Brief), sender, member or letter.
|
|
1981
|
+
*/
|
|
1982
|
+
pausedReason?: null | string;
|
|
1983
|
+
/**
|
|
1984
|
+
* Lists only: letters to the list's new entries charged this week.
|
|
1985
|
+
*/
|
|
1986
|
+
sentThisWeek?: number;
|
|
1987
|
+
/**
|
|
1988
|
+
* Lists only: letters to new entries that wait for the budget, the workspace limit or credits.
|
|
1989
|
+
*/
|
|
1990
|
+
waiting?: number;
|
|
1991
|
+
/**
|
|
1992
|
+
* Lists only: credits the budget counted in the current period.
|
|
1993
|
+
*/
|
|
1994
|
+
budgetUsed?: number;
|
|
1995
|
+
/**
|
|
1996
|
+
* Lists only: when the current budget period ends.
|
|
1997
|
+
*/
|
|
1998
|
+
budgetResetsAt?: null | string;
|
|
1999
|
+
};
|
|
2000
|
+
export type LetterRecipientRef = {
|
|
2001
|
+
kind: string;
|
|
2002
|
+
id: string;
|
|
2003
|
+
/**
|
|
2004
|
+
* once (default) or ongoing (also new entries).
|
|
2005
|
+
*/
|
|
2006
|
+
mode?: null | string;
|
|
2007
|
+
/**
|
|
2008
|
+
* Credits per budgetPeriod.
|
|
2009
|
+
*/
|
|
2010
|
+
budgetCredits?: null | number;
|
|
2011
|
+
/**
|
|
2012
|
+
* day, week or month.
|
|
2013
|
+
*/
|
|
2014
|
+
budgetPeriod?: null | string;
|
|
2015
|
+
/**
|
|
2016
|
+
* queue (default) or drop.
|
|
2017
|
+
*/
|
|
2018
|
+
overflow?: null | string;
|
|
2019
|
+
};
|
|
2020
|
+
export type LetterRulePayload = {
|
|
2021
|
+
/**
|
|
2022
|
+
* ID of a Brief in this workspace, from list_letters.
|
|
2023
|
+
*/
|
|
2024
|
+
letterId: string;
|
|
2025
|
+
/**
|
|
2026
|
+
* Firmenakte-ID of the Absender company, one of get_letter_setup's senders.
|
|
2027
|
+
*/
|
|
2028
|
+
senderCompanyId: string;
|
|
2029
|
+
};
|
|
2030
|
+
export type LetterSenderDto = {
|
|
2031
|
+
companyId: string;
|
|
2032
|
+
name: string;
|
|
2033
|
+
addressLines: Array<string>;
|
|
2034
|
+
returnLine: string;
|
|
2035
|
+
footer: string;
|
|
2036
|
+
};
|
|
2037
|
+
export type LetterSenderOptionDto = {
|
|
2038
|
+
companyId: string;
|
|
2039
|
+
name: string;
|
|
2040
|
+
};
|
|
2041
|
+
export type LetterSendingDto = {
|
|
2042
|
+
id: string;
|
|
2043
|
+
letterId: string;
|
|
2044
|
+
letterSubject: string;
|
|
2045
|
+
companyId: string;
|
|
2046
|
+
companyName: string;
|
|
2047
|
+
listId?: null | string;
|
|
2048
|
+
senderCompanyId: string;
|
|
2049
|
+
senderName: string;
|
|
2050
|
+
sentBy: string;
|
|
2051
|
+
salutation?: null | string;
|
|
2052
|
+
status: string;
|
|
2053
|
+
skipReason?: null | string;
|
|
2054
|
+
credits: number;
|
|
2055
|
+
createdAt: string;
|
|
2056
|
+
sentAt?: null | string;
|
|
2057
|
+
hasPdf: boolean;
|
|
2058
|
+
scans: number;
|
|
2059
|
+
firstScannedAt?: null | string;
|
|
2060
|
+
/**
|
|
2061
|
+
* The list rule (sendLetter) that queued it for a new list entry; null for a send of the Brief.
|
|
2062
|
+
*/
|
|
2063
|
+
ruleId?: null | string;
|
|
2064
|
+
/**
|
|
2065
|
+
* Why a waiting letter waits: list_budget, workspace_limit or credits.
|
|
2066
|
+
*/
|
|
2067
|
+
waitReason?: null | string;
|
|
2068
|
+
};
|
|
2069
|
+
export type LetterSendResultDto = {
|
|
2070
|
+
plan: LetterPlanDto;
|
|
2071
|
+
dryRun: boolean;
|
|
2072
|
+
queued: number;
|
|
2073
|
+
skipped: number;
|
|
2074
|
+
};
|
|
2075
|
+
export type LetterSetupDto = {
|
|
2076
|
+
senders: Array<LetterSenderOptionDto>;
|
|
2077
|
+
noSenderReason?: null | string;
|
|
2078
|
+
variables: Array<LetterVariableDto>;
|
|
2079
|
+
prices: LetterPricesDto;
|
|
2080
|
+
};
|
|
2081
|
+
export type LetterSpanDto = {
|
|
2082
|
+
text: string;
|
|
2083
|
+
bold?: boolean;
|
|
2084
|
+
italic?: boolean;
|
|
2085
|
+
variable?: null | string;
|
|
2086
|
+
fallback?: boolean;
|
|
2087
|
+
};
|
|
2088
|
+
export type LetterSummaryDto = {
|
|
2089
|
+
id: string;
|
|
2090
|
+
subject: string;
|
|
2091
|
+
/**
|
|
2092
|
+
* draft, running, paused or sent.
|
|
2093
|
+
*/
|
|
2094
|
+
status: string;
|
|
2095
|
+
attachmentsOnly: boolean;
|
|
2096
|
+
sentCount: number;
|
|
2097
|
+
queuedCount: number;
|
|
2098
|
+
scannedCount: number;
|
|
2099
|
+
changedAt: string;
|
|
2100
|
+
/**
|
|
2101
|
+
* With listId: how this Brief sends to that list, once or ongoing.
|
|
2102
|
+
*/
|
|
2103
|
+
listMode?: null | string;
|
|
2104
|
+
};
|
|
2105
|
+
export type LetterVariableDto = {
|
|
2106
|
+
path: string;
|
|
2107
|
+
label: string;
|
|
2108
|
+
group: string;
|
|
2109
|
+
};
|
|
1798
2110
|
export type ListDto = {
|
|
1799
2111
|
id: string;
|
|
1800
2112
|
name: string;
|
|
@@ -2378,6 +2690,7 @@ export type PublicCompany = {
|
|
|
2378
2690
|
websites: Array<string>;
|
|
2379
2691
|
webPresence?: null | Array<CompanyWebsite>;
|
|
2380
2692
|
profile?: null | CompanyProfileDto;
|
|
2693
|
+
logo?: null | CompanyLogoDto;
|
|
2381
2694
|
uidVerifications?: null | Array<CompanyUidVerification>;
|
|
2382
2695
|
signerCount?: null | number;
|
|
2383
2696
|
insolvency: CompanyInsolvency;
|
|
@@ -2537,6 +2850,7 @@ export type PublicEntityPublicCompany = {
|
|
|
2537
2850
|
websites: Array<string>;
|
|
2538
2851
|
webPresence?: null | Array<CompanyWebsite>;
|
|
2539
2852
|
profile?: null | CompanyProfileDto;
|
|
2853
|
+
logo?: null | CompanyLogoDto;
|
|
2540
2854
|
uidVerifications?: null | Array<CompanyUidVerification>;
|
|
2541
2855
|
signerCount?: null | number;
|
|
2542
2856
|
insolvency: CompanyInsolvency;
|
|
@@ -3024,7 +3338,9 @@ export type RuleDefinition = ({
|
|
|
3024
3338
|
operationId: 'applyListQuery';
|
|
3025
3339
|
} & RuleDefinitionApplyListQueryDefinition) | ({
|
|
3026
3340
|
operationId: 'notifyListEntries';
|
|
3027
|
-
} & RuleDefinitionNotifyListEntriesDefinition)
|
|
3341
|
+
} & RuleDefinitionNotifyListEntriesDefinition) | ({
|
|
3342
|
+
operationId: 'sendLetter';
|
|
3343
|
+
} & RuleDefinitionSendLetterDefinition);
|
|
3028
3344
|
export type RuleDefinitionApplyListQueryDefinition = {
|
|
3029
3345
|
operationId: 'applyListQuery';
|
|
3030
3346
|
payload: QueryRulePayload;
|
|
@@ -3041,6 +3357,14 @@ export type RuleDefinitionNotifyListEntriesDefinition = {
|
|
|
3041
3357
|
enabled?: boolean;
|
|
3042
3358
|
schemaVersion?: 1;
|
|
3043
3359
|
};
|
|
3360
|
+
export type RuleDefinitionSendLetterDefinition = {
|
|
3361
|
+
operationId: 'sendLetter';
|
|
3362
|
+
payload: LetterRulePayload;
|
|
3363
|
+
triggerPayload?: null | EmptyRuleTrigger;
|
|
3364
|
+
trigger?: 'entry.added';
|
|
3365
|
+
enabled?: boolean;
|
|
3366
|
+
schemaVersion?: 1;
|
|
3367
|
+
};
|
|
3044
3368
|
export type RuleDto = {
|
|
3045
3369
|
id: string;
|
|
3046
3370
|
listId: string;
|
|
@@ -3053,7 +3377,7 @@ export type RuleDto = {
|
|
|
3053
3377
|
export type RuleQuoteDto = {
|
|
3054
3378
|
credits: number;
|
|
3055
3379
|
nextRunAt: null | string;
|
|
3056
|
-
items: Array<
|
|
3380
|
+
items: Array<RuleQuoteItem>;
|
|
3057
3381
|
/**
|
|
3058
3382
|
* Companies a run would newly add to the list now: matches that are neither members nor excluded, as wouldAdd of a dry run counts them. Counted up to 10000; matchesCapped is true when there are more.
|
|
3059
3383
|
*/
|
|
@@ -3063,6 +3387,23 @@ export type RuleQuoteDto = {
|
|
|
3063
3387
|
*/
|
|
3064
3388
|
matchesCapped: boolean;
|
|
3065
3389
|
};
|
|
3390
|
+
export type RuleQuoteItem = {
|
|
3391
|
+
id: string;
|
|
3392
|
+
type?: null | string;
|
|
3393
|
+
name: string;
|
|
3394
|
+
/**
|
|
3395
|
+
* City of the registered address.
|
|
3396
|
+
*/
|
|
3397
|
+
place?: null | string;
|
|
3398
|
+
/**
|
|
3399
|
+
* Short label of the current legal form, such as GmbH.
|
|
3400
|
+
*/
|
|
3401
|
+
legalFormShortLabel?: null | string;
|
|
3402
|
+
/**
|
|
3403
|
+
* Date of the first Firmenbuch registration.
|
|
3404
|
+
*/
|
|
3405
|
+
registeredDate?: null | string;
|
|
3406
|
+
};
|
|
3066
3407
|
export type RunDeliveryDto = {
|
|
3067
3408
|
channel: string;
|
|
3068
3409
|
status: string;
|
|
@@ -3093,6 +3434,9 @@ export type SelectionHandle = {
|
|
|
3093
3434
|
count: number;
|
|
3094
3435
|
expiresAt: string;
|
|
3095
3436
|
};
|
|
3437
|
+
export type SendLetterBody = {
|
|
3438
|
+
dryRun?: boolean;
|
|
3439
|
+
};
|
|
3096
3440
|
export type SetEntityValuesDto = {
|
|
3097
3441
|
/**
|
|
3098
3442
|
* Workspace field key to a value of its configured type (string, one option, number, ISO date or boolean); null clears.
|
|
@@ -3117,7 +3461,7 @@ export type SimilarCompany = {
|
|
|
3117
3461
|
name: string;
|
|
3118
3462
|
reasons: Array<string>;
|
|
3119
3463
|
};
|
|
3120
|
-
export type SourceKey = 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap';
|
|
3464
|
+
export type SourceKey = 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims';
|
|
3121
3465
|
export type SourceLicense = {
|
|
3122
3466
|
name: string;
|
|
3123
3467
|
url?: null | string;
|
|
@@ -3244,6 +3588,22 @@ export type UpdateEntryDto = {
|
|
|
3244
3588
|
export type UpdateImportDto = {
|
|
3245
3589
|
rows: Array<ImportChoice>;
|
|
3246
3590
|
};
|
|
3591
|
+
export type UpdateLetterBody = {
|
|
3592
|
+
senderCompanyId?: null | string;
|
|
3593
|
+
subject?: null | string;
|
|
3594
|
+
body?: null | string;
|
|
3595
|
+
qrUrl?: null | string;
|
|
3596
|
+
/**
|
|
3597
|
+
* The bold line in the QR field; empty removes it, so „Mehr erfahren“ prints.
|
|
3598
|
+
*/
|
|
3599
|
+
qrText?: null | string;
|
|
3600
|
+
advertising?: null | boolean;
|
|
3601
|
+
recipients?: null | Array<LetterRecipientRef>;
|
|
3602
|
+
/**
|
|
3603
|
+
* A Brief that runs on lists: true pauses them (new entries get nothing, waiting letters wait), false resumes them for entries from now on; entries added meanwhile get nothing.
|
|
3604
|
+
*/
|
|
3605
|
+
paused?: null | boolean;
|
|
3606
|
+
};
|
|
3247
3607
|
export type UpdateRuleDto = {
|
|
3248
3608
|
revision: string;
|
|
3249
3609
|
rule: RuleDefinition;
|
|
@@ -4394,7 +4754,7 @@ export type ListRulesData = {
|
|
|
4394
4754
|
*/
|
|
4395
4755
|
cursor?: string;
|
|
4396
4756
|
/**
|
|
4397
|
-
* The rule function: applyListQuery or
|
|
4757
|
+
* The rule function: applyListQuery, notifyListEntries or sendLetter.
|
|
4398
4758
|
*/
|
|
4399
4759
|
operationId?: string;
|
|
4400
4760
|
};
|
|
@@ -6968,7 +7328,7 @@ export type ListSourceRecordsData = {
|
|
|
6968
7328
|
/**
|
|
6969
7329
|
* Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
|
|
6970
7330
|
*/
|
|
6971
|
-
source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap';
|
|
7331
|
+
source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims';
|
|
6972
7332
|
};
|
|
6973
7333
|
query?: {
|
|
6974
7334
|
/**
|
|
@@ -7038,7 +7398,7 @@ export type ListSourceRecordChangesData = {
|
|
|
7038
7398
|
/**
|
|
7039
7399
|
* Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
|
|
7040
7400
|
*/
|
|
7041
|
-
source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap';
|
|
7401
|
+
source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims';
|
|
7042
7402
|
};
|
|
7043
7403
|
query?: {
|
|
7044
7404
|
/**
|
|
@@ -7108,7 +7468,7 @@ export type GetSourceRecordData = {
|
|
|
7108
7468
|
/**
|
|
7109
7469
|
* Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
|
|
7110
7470
|
*/
|
|
7111
|
-
source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap';
|
|
7471
|
+
source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims';
|
|
7112
7472
|
/**
|
|
7113
7473
|
* Source record ID returned by this source's records collection; this is not an entity ID.
|
|
7114
7474
|
*/
|
|
@@ -7169,7 +7529,7 @@ export type ListRecordObservationsData = {
|
|
|
7169
7529
|
/**
|
|
7170
7530
|
* Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
|
|
7171
7531
|
*/
|
|
7172
|
-
source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap';
|
|
7532
|
+
source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims';
|
|
7173
7533
|
/**
|
|
7174
7534
|
* Source record ID returned by this source's records collection; this is not an entity ID.
|
|
7175
7535
|
*/
|
|
@@ -7610,7 +7970,7 @@ export type GetPublicSourceData = {
|
|
|
7610
7970
|
/**
|
|
7611
7971
|
* Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
|
|
7612
7972
|
*/
|
|
7613
|
-
source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap';
|
|
7973
|
+
source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims';
|
|
7614
7974
|
};
|
|
7615
7975
|
query?: never;
|
|
7616
7976
|
url: '/api/v2/public/sources/{source}';
|
|
@@ -8002,6 +8362,628 @@ export type UpdateDigestSettingsResponses = {
|
|
|
8002
8362
|
200: DigestDto;
|
|
8003
8363
|
};
|
|
8004
8364
|
export type UpdateDigestSettingsResponse = UpdateDigestSettingsResponses[keyof UpdateDigestSettingsResponses];
|
|
8365
|
+
export type GetLetterSetupData = {
|
|
8366
|
+
body?: never;
|
|
8367
|
+
path?: never;
|
|
8368
|
+
query?: never;
|
|
8369
|
+
url: '/api/v2/me/letters/setup';
|
|
8370
|
+
};
|
|
8371
|
+
export type GetLetterSetupErrors = {
|
|
8372
|
+
/**
|
|
8373
|
+
* Malformed request, or a cursor from another request.
|
|
8374
|
+
*/
|
|
8375
|
+
400: Problem;
|
|
8376
|
+
/**
|
|
8377
|
+
* No valid API key or session.
|
|
8378
|
+
*/
|
|
8379
|
+
401: Problem;
|
|
8380
|
+
/**
|
|
8381
|
+
* This operation needs a dashboard session.
|
|
8382
|
+
*/
|
|
8383
|
+
403: Problem;
|
|
8384
|
+
/**
|
|
8385
|
+
* Not found, or it belongs to another workspace.
|
|
8386
|
+
*/
|
|
8387
|
+
404: Problem;
|
|
8388
|
+
/**
|
|
8389
|
+
* Conflict with the current state; `code` says which.
|
|
8390
|
+
*/
|
|
8391
|
+
409: Problem;
|
|
8392
|
+
/**
|
|
8393
|
+
* Validation failed; `errors[]` names each parameter or JSON pointer.
|
|
8394
|
+
*/
|
|
8395
|
+
422: Problem;
|
|
8396
|
+
/**
|
|
8397
|
+
* Too many requests; retry after `Retry-After`.
|
|
8398
|
+
*/
|
|
8399
|
+
429: Problem;
|
|
8400
|
+
/**
|
|
8401
|
+
* Internal error; quote `requestId` to support.
|
|
8402
|
+
*/
|
|
8403
|
+
500: Problem;
|
|
8404
|
+
};
|
|
8405
|
+
export type GetLetterSetupError = GetLetterSetupErrors[keyof GetLetterSetupErrors];
|
|
8406
|
+
export type GetLetterSetupResponses = {
|
|
8407
|
+
/**
|
|
8408
|
+
* OK
|
|
8409
|
+
*/
|
|
8410
|
+
200: LetterSetupDto;
|
|
8411
|
+
};
|
|
8412
|
+
export type GetLetterSetupResponse = GetLetterSetupResponses[keyof GetLetterSetupResponses];
|
|
8413
|
+
export type ListLettersData = {
|
|
8414
|
+
body?: never;
|
|
8415
|
+
path?: never;
|
|
8416
|
+
query?: {
|
|
8417
|
+
/**
|
|
8418
|
+
* Searches the Betreff.
|
|
8419
|
+
*/
|
|
8420
|
+
q?: string;
|
|
8421
|
+
/**
|
|
8422
|
+
* Page size, default 50, maximum 200.
|
|
8423
|
+
*/
|
|
8424
|
+
limit?: number;
|
|
8425
|
+
/**
|
|
8426
|
+
* Opaque cursor from the previous page.
|
|
8427
|
+
*/
|
|
8428
|
+
cursor?: string;
|
|
8429
|
+
/**
|
|
8430
|
+
* Only what concerns this list: the Briefe that send to it, or the sendings to companies from it.
|
|
8431
|
+
*/
|
|
8432
|
+
listId?: string;
|
|
8433
|
+
};
|
|
8434
|
+
url: '/api/v2/me/letters';
|
|
8435
|
+
};
|
|
8436
|
+
export type ListLettersErrors = {
|
|
8437
|
+
/**
|
|
8438
|
+
* Malformed request, or a cursor from another request.
|
|
8439
|
+
*/
|
|
8440
|
+
400: Problem;
|
|
8441
|
+
/**
|
|
8442
|
+
* No valid API key or session.
|
|
8443
|
+
*/
|
|
8444
|
+
401: Problem;
|
|
8445
|
+
/**
|
|
8446
|
+
* This operation needs a dashboard session.
|
|
8447
|
+
*/
|
|
8448
|
+
403: Problem;
|
|
8449
|
+
/**
|
|
8450
|
+
* Not found, or it belongs to another workspace.
|
|
8451
|
+
*/
|
|
8452
|
+
404: Problem;
|
|
8453
|
+
/**
|
|
8454
|
+
* Conflict with the current state; `code` says which.
|
|
8455
|
+
*/
|
|
8456
|
+
409: Problem;
|
|
8457
|
+
/**
|
|
8458
|
+
* Validation failed; `errors[]` names each parameter or JSON pointer.
|
|
8459
|
+
*/
|
|
8460
|
+
422: Problem;
|
|
8461
|
+
/**
|
|
8462
|
+
* Too many requests; retry after `Retry-After`.
|
|
8463
|
+
*/
|
|
8464
|
+
429: Problem;
|
|
8465
|
+
/**
|
|
8466
|
+
* Internal error; quote `requestId` to support.
|
|
8467
|
+
*/
|
|
8468
|
+
500: Problem;
|
|
8469
|
+
};
|
|
8470
|
+
export type ListLettersError = ListLettersErrors[keyof ListLettersErrors];
|
|
8471
|
+
export type ListLettersResponses = {
|
|
8472
|
+
/**
|
|
8473
|
+
* OK
|
|
8474
|
+
*/
|
|
8475
|
+
200: CursorPageOfLetterSummaryDto;
|
|
8476
|
+
};
|
|
8477
|
+
export type ListLettersResponse = ListLettersResponses[keyof ListLettersResponses];
|
|
8478
|
+
export type CreateLetterData = {
|
|
8479
|
+
body: CreateLetterRequest;
|
|
8480
|
+
path?: never;
|
|
8481
|
+
query?: never;
|
|
8482
|
+
url: '/api/v2/me/letters';
|
|
8483
|
+
};
|
|
8484
|
+
export type CreateLetterErrors = {
|
|
8485
|
+
/**
|
|
8486
|
+
* Malformed request, or a cursor from another request.
|
|
8487
|
+
*/
|
|
8488
|
+
400: Problem;
|
|
8489
|
+
/**
|
|
8490
|
+
* No valid API key or session.
|
|
8491
|
+
*/
|
|
8492
|
+
401: Problem;
|
|
8493
|
+
/**
|
|
8494
|
+
* This operation needs a dashboard session.
|
|
8495
|
+
*/
|
|
8496
|
+
403: Problem;
|
|
8497
|
+
/**
|
|
8498
|
+
* Not found, or it belongs to another workspace.
|
|
8499
|
+
*/
|
|
8500
|
+
404: Problem;
|
|
8501
|
+
/**
|
|
8502
|
+
* Conflict with the current state; `code` says which.
|
|
8503
|
+
*/
|
|
8504
|
+
409: Problem;
|
|
8505
|
+
/**
|
|
8506
|
+
* Validation failed; `errors[]` names each parameter or JSON pointer.
|
|
8507
|
+
*/
|
|
8508
|
+
422: Problem;
|
|
8509
|
+
/**
|
|
8510
|
+
* Too many requests; retry after `Retry-After`.
|
|
8511
|
+
*/
|
|
8512
|
+
429: Problem;
|
|
8513
|
+
/**
|
|
8514
|
+
* Internal error; quote `requestId` to support.
|
|
8515
|
+
*/
|
|
8516
|
+
500: Problem;
|
|
8517
|
+
};
|
|
8518
|
+
export type CreateLetterError = CreateLetterErrors[keyof CreateLetterErrors];
|
|
8519
|
+
export type CreateLetterResponses = {
|
|
8520
|
+
/**
|
|
8521
|
+
* OK
|
|
8522
|
+
*/
|
|
8523
|
+
200: LetterDto;
|
|
8524
|
+
};
|
|
8525
|
+
export type CreateLetterResponse = CreateLetterResponses[keyof CreateLetterResponses];
|
|
8526
|
+
export type ListLetterSendingsData = {
|
|
8527
|
+
body?: never;
|
|
8528
|
+
path?: never;
|
|
8529
|
+
query?: {
|
|
8530
|
+
/**
|
|
8531
|
+
* Only sendings of this Brief.
|
|
8532
|
+
*/
|
|
8533
|
+
letterId?: string;
|
|
8534
|
+
/**
|
|
8535
|
+
* A recipient's Firmenakte-ID.
|
|
8536
|
+
*/
|
|
8537
|
+
companyId?: string;
|
|
8538
|
+
/**
|
|
8539
|
+
* waiting, queued, submitted, sent, undeliverable, skipped or dropped.
|
|
8540
|
+
*/
|
|
8541
|
+
status?: string;
|
|
8542
|
+
/**
|
|
8543
|
+
* Page size, default 50, maximum 200.
|
|
8544
|
+
*/
|
|
8545
|
+
limit?: number;
|
|
8546
|
+
/**
|
|
8547
|
+
* Opaque cursor from the previous page.
|
|
8548
|
+
*/
|
|
8549
|
+
cursor?: string;
|
|
8550
|
+
/**
|
|
8551
|
+
* Only what concerns this list: the Briefe that send to it, or the sendings to companies from it.
|
|
8552
|
+
*/
|
|
8553
|
+
listId?: string;
|
|
8554
|
+
};
|
|
8555
|
+
url: '/api/v2/me/letters/sendings';
|
|
8556
|
+
};
|
|
8557
|
+
export type ListLetterSendingsErrors = {
|
|
8558
|
+
/**
|
|
8559
|
+
* Malformed request, or a cursor from another request.
|
|
8560
|
+
*/
|
|
8561
|
+
400: Problem;
|
|
8562
|
+
/**
|
|
8563
|
+
* No valid API key or session.
|
|
8564
|
+
*/
|
|
8565
|
+
401: Problem;
|
|
8566
|
+
/**
|
|
8567
|
+
* This operation needs a dashboard session.
|
|
8568
|
+
*/
|
|
8569
|
+
403: Problem;
|
|
8570
|
+
/**
|
|
8571
|
+
* Not found, or it belongs to another workspace.
|
|
8572
|
+
*/
|
|
8573
|
+
404: Problem;
|
|
8574
|
+
/**
|
|
8575
|
+
* Conflict with the current state; `code` says which.
|
|
8576
|
+
*/
|
|
8577
|
+
409: Problem;
|
|
8578
|
+
/**
|
|
8579
|
+
* Validation failed; `errors[]` names each parameter or JSON pointer.
|
|
8580
|
+
*/
|
|
8581
|
+
422: Problem;
|
|
8582
|
+
/**
|
|
8583
|
+
* Too many requests; retry after `Retry-After`.
|
|
8584
|
+
*/
|
|
8585
|
+
429: Problem;
|
|
8586
|
+
/**
|
|
8587
|
+
* Internal error; quote `requestId` to support.
|
|
8588
|
+
*/
|
|
8589
|
+
500: Problem;
|
|
8590
|
+
};
|
|
8591
|
+
export type ListLetterSendingsError = ListLetterSendingsErrors[keyof ListLetterSendingsErrors];
|
|
8592
|
+
export type ListLetterSendingsResponses = {
|
|
8593
|
+
/**
|
|
8594
|
+
* OK
|
|
8595
|
+
*/
|
|
8596
|
+
200: CursorPageOfLetterSendingDto;
|
|
8597
|
+
};
|
|
8598
|
+
export type ListLetterSendingsResponse = ListLetterSendingsResponses[keyof ListLetterSendingsResponses];
|
|
8599
|
+
export type DeleteLetterData = {
|
|
8600
|
+
body?: never;
|
|
8601
|
+
path: {
|
|
8602
|
+
/**
|
|
8603
|
+
* The Brief's ID.
|
|
8604
|
+
*/
|
|
8605
|
+
id: string;
|
|
8606
|
+
};
|
|
8607
|
+
query?: never;
|
|
8608
|
+
url: '/api/v2/me/letters/{id}';
|
|
8609
|
+
};
|
|
8610
|
+
export type DeleteLetterErrors = {
|
|
8611
|
+
/**
|
|
8612
|
+
* Malformed request, or a cursor from another request.
|
|
8613
|
+
*/
|
|
8614
|
+
400: Problem;
|
|
8615
|
+
/**
|
|
8616
|
+
* No valid API key or session.
|
|
8617
|
+
*/
|
|
8618
|
+
401: Problem;
|
|
8619
|
+
/**
|
|
8620
|
+
* This operation needs a dashboard session.
|
|
8621
|
+
*/
|
|
8622
|
+
403: Problem;
|
|
8623
|
+
/**
|
|
8624
|
+
* Not found, or it belongs to another workspace.
|
|
8625
|
+
*/
|
|
8626
|
+
404: Problem;
|
|
8627
|
+
/**
|
|
8628
|
+
* Conflict with the current state; `code` says which.
|
|
8629
|
+
*/
|
|
8630
|
+
409: Problem;
|
|
8631
|
+
/**
|
|
8632
|
+
* Validation failed; `errors[]` names each parameter or JSON pointer.
|
|
8633
|
+
*/
|
|
8634
|
+
422: Problem;
|
|
8635
|
+
/**
|
|
8636
|
+
* Too many requests; retry after `Retry-After`.
|
|
8637
|
+
*/
|
|
8638
|
+
429: Problem;
|
|
8639
|
+
/**
|
|
8640
|
+
* Internal error; quote `requestId` to support.
|
|
8641
|
+
*/
|
|
8642
|
+
500: Problem;
|
|
8643
|
+
};
|
|
8644
|
+
export type DeleteLetterError = DeleteLetterErrors[keyof DeleteLetterErrors];
|
|
8645
|
+
export type DeleteLetterResponses = {
|
|
8646
|
+
/**
|
|
8647
|
+
* OK
|
|
8648
|
+
*/
|
|
8649
|
+
200: LetterDto;
|
|
8650
|
+
};
|
|
8651
|
+
export type DeleteLetterResponse = DeleteLetterResponses[keyof DeleteLetterResponses];
|
|
8652
|
+
export type GetLetterData = {
|
|
8653
|
+
body?: never;
|
|
8654
|
+
path: {
|
|
8655
|
+
/**
|
|
8656
|
+
* The Brief's ID.
|
|
8657
|
+
*/
|
|
8658
|
+
id: string;
|
|
8659
|
+
};
|
|
8660
|
+
query?: never;
|
|
8661
|
+
url: '/api/v2/me/letters/{id}';
|
|
8662
|
+
};
|
|
8663
|
+
export type GetLetterErrors = {
|
|
8664
|
+
/**
|
|
8665
|
+
* Malformed request, or a cursor from another request.
|
|
8666
|
+
*/
|
|
8667
|
+
400: Problem;
|
|
8668
|
+
/**
|
|
8669
|
+
* No valid API key or session.
|
|
8670
|
+
*/
|
|
8671
|
+
401: Problem;
|
|
8672
|
+
/**
|
|
8673
|
+
* This operation needs a dashboard session.
|
|
8674
|
+
*/
|
|
8675
|
+
403: Problem;
|
|
8676
|
+
/**
|
|
8677
|
+
* Not found, or it belongs to another workspace.
|
|
8678
|
+
*/
|
|
8679
|
+
404: Problem;
|
|
8680
|
+
/**
|
|
8681
|
+
* Conflict with the current state; `code` says which.
|
|
8682
|
+
*/
|
|
8683
|
+
409: Problem;
|
|
8684
|
+
/**
|
|
8685
|
+
* Validation failed; `errors[]` names each parameter or JSON pointer.
|
|
8686
|
+
*/
|
|
8687
|
+
422: Problem;
|
|
8688
|
+
/**
|
|
8689
|
+
* Too many requests; retry after `Retry-After`.
|
|
8690
|
+
*/
|
|
8691
|
+
429: Problem;
|
|
8692
|
+
/**
|
|
8693
|
+
* Internal error; quote `requestId` to support.
|
|
8694
|
+
*/
|
|
8695
|
+
500: Problem;
|
|
8696
|
+
};
|
|
8697
|
+
export type GetLetterError = GetLetterErrors[keyof GetLetterErrors];
|
|
8698
|
+
export type GetLetterResponses = {
|
|
8699
|
+
/**
|
|
8700
|
+
* OK
|
|
8701
|
+
*/
|
|
8702
|
+
200: LetterDto;
|
|
8703
|
+
};
|
|
8704
|
+
export type GetLetterResponse = GetLetterResponses[keyof GetLetterResponses];
|
|
8705
|
+
export type UpdateLetterData = {
|
|
8706
|
+
body: UpdateLetterBody;
|
|
8707
|
+
path: {
|
|
8708
|
+
/**
|
|
8709
|
+
* The Brief's ID.
|
|
8710
|
+
*/
|
|
8711
|
+
id: string;
|
|
8712
|
+
};
|
|
8713
|
+
query?: never;
|
|
8714
|
+
url: '/api/v2/me/letters/{id}';
|
|
8715
|
+
};
|
|
8716
|
+
export type UpdateLetterErrors = {
|
|
8717
|
+
/**
|
|
8718
|
+
* Malformed request, or a cursor from another request.
|
|
8719
|
+
*/
|
|
8720
|
+
400: Problem;
|
|
8721
|
+
/**
|
|
8722
|
+
* No valid API key or session.
|
|
8723
|
+
*/
|
|
8724
|
+
401: Problem;
|
|
8725
|
+
/**
|
|
8726
|
+
* This operation needs a dashboard session.
|
|
8727
|
+
*/
|
|
8728
|
+
403: Problem;
|
|
8729
|
+
/**
|
|
8730
|
+
* Not found, or it belongs to another workspace.
|
|
8731
|
+
*/
|
|
8732
|
+
404: Problem;
|
|
8733
|
+
/**
|
|
8734
|
+
* Conflict with the current state; `code` says which.
|
|
8735
|
+
*/
|
|
8736
|
+
409: Problem;
|
|
8737
|
+
/**
|
|
8738
|
+
* Validation failed; `errors[]` names each parameter or JSON pointer.
|
|
8739
|
+
*/
|
|
8740
|
+
422: Problem;
|
|
8741
|
+
/**
|
|
8742
|
+
* Too many requests; retry after `Retry-After`.
|
|
8743
|
+
*/
|
|
8744
|
+
429: Problem;
|
|
8745
|
+
/**
|
|
8746
|
+
* Internal error; quote `requestId` to support.
|
|
8747
|
+
*/
|
|
8748
|
+
500: Problem;
|
|
8749
|
+
};
|
|
8750
|
+
export type UpdateLetterError = UpdateLetterErrors[keyof UpdateLetterErrors];
|
|
8751
|
+
export type UpdateLetterResponses = {
|
|
8752
|
+
/**
|
|
8753
|
+
* OK
|
|
8754
|
+
*/
|
|
8755
|
+
200: LetterDto;
|
|
8756
|
+
};
|
|
8757
|
+
export type UpdateLetterResponse = UpdateLetterResponses[keyof UpdateLetterResponses];
|
|
8758
|
+
export type AddLetterAttachmentData = {
|
|
8759
|
+
body: AddLetterAttachmentBody;
|
|
8760
|
+
path: {
|
|
8761
|
+
/**
|
|
8762
|
+
* The Brief's ID.
|
|
8763
|
+
*/
|
|
8764
|
+
id: string;
|
|
8765
|
+
};
|
|
8766
|
+
query?: never;
|
|
8767
|
+
url: '/api/v2/me/letters/{id}/attachments';
|
|
8768
|
+
};
|
|
8769
|
+
export type AddLetterAttachmentErrors = {
|
|
8770
|
+
/**
|
|
8771
|
+
* Malformed request, or a cursor from another request.
|
|
8772
|
+
*/
|
|
8773
|
+
400: Problem;
|
|
8774
|
+
/**
|
|
8775
|
+
* No valid API key or session.
|
|
8776
|
+
*/
|
|
8777
|
+
401: Problem;
|
|
8778
|
+
/**
|
|
8779
|
+
* This operation needs a dashboard session.
|
|
8780
|
+
*/
|
|
8781
|
+
403: Problem;
|
|
8782
|
+
/**
|
|
8783
|
+
* Not found, or it belongs to another workspace.
|
|
8784
|
+
*/
|
|
8785
|
+
404: Problem;
|
|
8786
|
+
/**
|
|
8787
|
+
* Conflict with the current state; `code` says which.
|
|
8788
|
+
*/
|
|
8789
|
+
409: Problem;
|
|
8790
|
+
/**
|
|
8791
|
+
* Validation failed; `errors[]` names each parameter or JSON pointer.
|
|
8792
|
+
*/
|
|
8793
|
+
422: Problem;
|
|
8794
|
+
/**
|
|
8795
|
+
* Too many requests; retry after `Retry-After`.
|
|
8796
|
+
*/
|
|
8797
|
+
429: Problem;
|
|
8798
|
+
/**
|
|
8799
|
+
* Internal error; quote `requestId` to support.
|
|
8800
|
+
*/
|
|
8801
|
+
500: Problem;
|
|
8802
|
+
};
|
|
8803
|
+
export type AddLetterAttachmentError = AddLetterAttachmentErrors[keyof AddLetterAttachmentErrors];
|
|
8804
|
+
export type AddLetterAttachmentResponses = {
|
|
8805
|
+
/**
|
|
8806
|
+
* OK
|
|
8807
|
+
*/
|
|
8808
|
+
200: LetterDto;
|
|
8809
|
+
};
|
|
8810
|
+
export type AddLetterAttachmentResponse = AddLetterAttachmentResponses[keyof AddLetterAttachmentResponses];
|
|
8811
|
+
export type RemoveLetterAttachmentData = {
|
|
8812
|
+
body?: never;
|
|
8813
|
+
path: {
|
|
8814
|
+
/**
|
|
8815
|
+
* The Brief's ID.
|
|
8816
|
+
*/
|
|
8817
|
+
id: string;
|
|
8818
|
+
/**
|
|
8819
|
+
* The attachment's ID.
|
|
8820
|
+
*/
|
|
8821
|
+
attachmentId: string;
|
|
8822
|
+
};
|
|
8823
|
+
query?: never;
|
|
8824
|
+
url: '/api/v2/me/letters/{id}/attachments/{attachmentId}';
|
|
8825
|
+
};
|
|
8826
|
+
export type RemoveLetterAttachmentErrors = {
|
|
8827
|
+
/**
|
|
8828
|
+
* Malformed request, or a cursor from another request.
|
|
8829
|
+
*/
|
|
8830
|
+
400: Problem;
|
|
8831
|
+
/**
|
|
8832
|
+
* No valid API key or session.
|
|
8833
|
+
*/
|
|
8834
|
+
401: Problem;
|
|
8835
|
+
/**
|
|
8836
|
+
* This operation needs a dashboard session.
|
|
8837
|
+
*/
|
|
8838
|
+
403: Problem;
|
|
8839
|
+
/**
|
|
8840
|
+
* Not found, or it belongs to another workspace.
|
|
8841
|
+
*/
|
|
8842
|
+
404: Problem;
|
|
8843
|
+
/**
|
|
8844
|
+
* Conflict with the current state; `code` says which.
|
|
8845
|
+
*/
|
|
8846
|
+
409: Problem;
|
|
8847
|
+
/**
|
|
8848
|
+
* Validation failed; `errors[]` names each parameter or JSON pointer.
|
|
8849
|
+
*/
|
|
8850
|
+
422: Problem;
|
|
8851
|
+
/**
|
|
8852
|
+
* Too many requests; retry after `Retry-After`.
|
|
8853
|
+
*/
|
|
8854
|
+
429: Problem;
|
|
8855
|
+
/**
|
|
8856
|
+
* Internal error; quote `requestId` to support.
|
|
8857
|
+
*/
|
|
8858
|
+
500: Problem;
|
|
8859
|
+
};
|
|
8860
|
+
export type RemoveLetterAttachmentError = RemoveLetterAttachmentErrors[keyof RemoveLetterAttachmentErrors];
|
|
8861
|
+
export type RemoveLetterAttachmentResponses = {
|
|
8862
|
+
/**
|
|
8863
|
+
* OK
|
|
8864
|
+
*/
|
|
8865
|
+
200: LetterDto;
|
|
8866
|
+
};
|
|
8867
|
+
export type RemoveLetterAttachmentResponse = RemoveLetterAttachmentResponses[keyof RemoveLetterAttachmentResponses];
|
|
8868
|
+
export type PreviewLetterData = {
|
|
8869
|
+
body?: never;
|
|
8870
|
+
path: {
|
|
8871
|
+
/**
|
|
8872
|
+
* The Brief's ID.
|
|
8873
|
+
*/
|
|
8874
|
+
id: string;
|
|
8875
|
+
};
|
|
8876
|
+
query?: {
|
|
8877
|
+
/**
|
|
8878
|
+
* A recipient's Firmenakte-ID.
|
|
8879
|
+
*/
|
|
8880
|
+
companyId?: string;
|
|
8881
|
+
/**
|
|
8882
|
+
* Position among the recipients, 0 first.
|
|
8883
|
+
*/
|
|
8884
|
+
index?: number;
|
|
8885
|
+
};
|
|
8886
|
+
url: '/api/v2/me/letters/{id}/preview';
|
|
8887
|
+
};
|
|
8888
|
+
export type PreviewLetterErrors = {
|
|
8889
|
+
/**
|
|
8890
|
+
* Malformed request, or a cursor from another request.
|
|
8891
|
+
*/
|
|
8892
|
+
400: Problem;
|
|
8893
|
+
/**
|
|
8894
|
+
* No valid API key or session.
|
|
8895
|
+
*/
|
|
8896
|
+
401: Problem;
|
|
8897
|
+
/**
|
|
8898
|
+
* This operation needs a dashboard session.
|
|
8899
|
+
*/
|
|
8900
|
+
403: Problem;
|
|
8901
|
+
/**
|
|
8902
|
+
* Not found, or it belongs to another workspace.
|
|
8903
|
+
*/
|
|
8904
|
+
404: Problem;
|
|
8905
|
+
/**
|
|
8906
|
+
* Conflict with the current state; `code` says which.
|
|
8907
|
+
*/
|
|
8908
|
+
409: Problem;
|
|
8909
|
+
/**
|
|
8910
|
+
* Validation failed; `errors[]` names each parameter or JSON pointer.
|
|
8911
|
+
*/
|
|
8912
|
+
422: Problem;
|
|
8913
|
+
/**
|
|
8914
|
+
* Too many requests; retry after `Retry-After`.
|
|
8915
|
+
*/
|
|
8916
|
+
429: Problem;
|
|
8917
|
+
/**
|
|
8918
|
+
* Internal error; quote `requestId` to support.
|
|
8919
|
+
*/
|
|
8920
|
+
500: Problem;
|
|
8921
|
+
};
|
|
8922
|
+
export type PreviewLetterError = PreviewLetterErrors[keyof PreviewLetterErrors];
|
|
8923
|
+
export type PreviewLetterResponses = {
|
|
8924
|
+
/**
|
|
8925
|
+
* OK
|
|
8926
|
+
*/
|
|
8927
|
+
200: LetterPreviewDto;
|
|
8928
|
+
};
|
|
8929
|
+
export type PreviewLetterResponse = PreviewLetterResponses[keyof PreviewLetterResponses];
|
|
8930
|
+
export type CreateLetterSendingsData = {
|
|
8931
|
+
body: SendLetterBody;
|
|
8932
|
+
path: {
|
|
8933
|
+
/**
|
|
8934
|
+
* The Brief's ID.
|
|
8935
|
+
*/
|
|
8936
|
+
id: string;
|
|
8937
|
+
};
|
|
8938
|
+
query?: never;
|
|
8939
|
+
url: '/api/v2/me/letters/{id}/send';
|
|
8940
|
+
};
|
|
8941
|
+
export type CreateLetterSendingsErrors = {
|
|
8942
|
+
/**
|
|
8943
|
+
* Malformed request, or a cursor from another request.
|
|
8944
|
+
*/
|
|
8945
|
+
400: Problem;
|
|
8946
|
+
/**
|
|
8947
|
+
* No valid API key or session.
|
|
8948
|
+
*/
|
|
8949
|
+
401: Problem;
|
|
8950
|
+
/**
|
|
8951
|
+
* Not enough credits for this call.
|
|
8952
|
+
*/
|
|
8953
|
+
402: Problem;
|
|
8954
|
+
/**
|
|
8955
|
+
* This operation needs a dashboard session.
|
|
8956
|
+
*/
|
|
8957
|
+
403: Problem;
|
|
8958
|
+
/**
|
|
8959
|
+
* Not found, or it belongs to another workspace.
|
|
8960
|
+
*/
|
|
8961
|
+
404: Problem;
|
|
8962
|
+
/**
|
|
8963
|
+
* Conflict with the current state; `code` says which.
|
|
8964
|
+
*/
|
|
8965
|
+
409: Problem;
|
|
8966
|
+
/**
|
|
8967
|
+
* Validation failed; `errors[]` names each parameter or JSON pointer.
|
|
8968
|
+
*/
|
|
8969
|
+
422: Problem;
|
|
8970
|
+
/**
|
|
8971
|
+
* Too many requests; retry after `Retry-After`.
|
|
8972
|
+
*/
|
|
8973
|
+
429: Problem;
|
|
8974
|
+
/**
|
|
8975
|
+
* Internal error; quote `requestId` to support.
|
|
8976
|
+
*/
|
|
8977
|
+
500: Problem;
|
|
8978
|
+
};
|
|
8979
|
+
export type CreateLetterSendingsError = CreateLetterSendingsErrors[keyof CreateLetterSendingsErrors];
|
|
8980
|
+
export type CreateLetterSendingsResponses = {
|
|
8981
|
+
/**
|
|
8982
|
+
* OK
|
|
8983
|
+
*/
|
|
8984
|
+
200: LetterSendResultDto;
|
|
8985
|
+
};
|
|
8986
|
+
export type CreateLetterSendingsResponse = CreateLetterSendingsResponses[keyof CreateLetterSendingsResponses];
|
|
8005
8987
|
export type GetMeData = {
|
|
8006
8988
|
body?: never;
|
|
8007
8989
|
headers?: {
|