-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheinnsyn.queryparameters.tsp
121 lines (98 loc) · 3.1 KB
/
einnsyn.queryparameters.tsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
import "@typespec/http";
import "@typespec/openapi";
import "@typespec/openapi3";
import "./einnsyn.arkiv.models.tsp";
using Http;
namespace EInnsyn;
namespace QueryParameters {
model GetParameters {
/**
* Specifies which fields in the response should be expanded.
*/
@query expand?: string[];
}
model ListParameters {
/**
* Specifies which fields in the response should be expanded.
*/
@query expand?: string[];
/**
* A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
*/
@query limit?: integer = 25;
/**
* The sort order of the result set. The default is ascending.
*/
@query sortOrder?: "asc" | "desc" = "asc";
/**
* A cursor for use in pagination. StartingAfter is a resource ID that defines your place in the list.
*/
@query startingAfter?: eInnsynId;
/**
* A cursor for use in pagination. EndingBefore is a resource ID that defines your place in the list.
*/
@query endingBefore?: eInnsynId;
/**
* A list of resource IDs to be returned. If this parameter is used, the other parameters will be ignored.
*/
@query ids?: eInnsynId[];
/**
* A list of external IDs to be returned. If this parameter is used, the other parameters will be ignored.
*/
@query externalIds?: string[];
/**
* The Journalenhet to filter the result set by.
*/
@query journalenhet?: eInnsynId;
}
model FilterParameters {
/**
* A query string to filter by. Quotes can be used to search for exact matches or phrases. Words can be excluded by prefixing them with a minus sign.
*/
@query query?: string;
/**
* A list of enhet IDs to filter by. This will also match subenhets.
*/
@query administrativEnhet?: eInnsynId[];
/**
* A list of enhet IDs to filter by. This will only match the specified enhets, not subenhets.
*/
@query administrativEnhetExact?: eInnsynId[];
/**
* A list of enhet IDs to exclude from the result set. This will also exclude subenhets.
*/
@query excludeAdministrativEnhet?: eInnsynId[];
/**
* A list of enhet IDs to exclude from the result set. This will only exclude the specified enhets, not subenhets.
*/
@query excludeAdministrativEnhetExact?: eInnsynId[];
/**
* Filter by the published date of the document.
*/
@query publisertDatoBefore?: utcDateTime;
/**
* Filter by the published date of the document.
*/
@query publisertDatoAfter?: utcDateTime;
/**
* Filter by the updated date of the document.
*/
@query oppdatertDatoBefore?: utcDateTime;
/**
* Filter by the updated date of the document.
*/
@query oppdatertDatoAfter?: utcDateTime;
/**
* Filter by the date of a meeting.
*/
@query moetedatoBefore?: utcDateTime;
/**
* Filter by the date of a meeting.
*/
@query moetedatoAfter?: utcDateTime;
/**
* Filter by the entity type.
*/
@query entity?: "Journalpost" | "Moetemappe" | "Moetesak" | "Saksmappe";
}
}