repzo 1.0.125 → 1.0.126

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.
@@ -0,0 +1,272 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - Tag
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo Tag endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /tag:
10
+ get:
11
+ summary: Find tags
12
+ operationId: findTags
13
+ parameters:
14
+ - in: query
15
+ name: params
16
+ schema:
17
+ type: object
18
+ properties:
19
+ _id:
20
+ oneOf:
21
+ - type: array
22
+ items:
23
+ type: string
24
+ - type: string
25
+ search:
26
+ type: string
27
+ name:
28
+ oneOf:
29
+ - type: array
30
+ items:
31
+ type: string
32
+ - type: string
33
+ disabled:
34
+ type: boolean
35
+ from_updatedAt:
36
+ type: number
37
+ from__id:
38
+ type: string
39
+ to__id:
40
+ type: string
41
+ sortBy:
42
+ type: array
43
+ items:
44
+ type: object
45
+ properties:
46
+ field:
47
+ type: string
48
+ enum: [_id]
49
+ type:
50
+ type: string
51
+ enum: [asc, desc]
52
+ description: Query parameters for filtering tags
53
+ responses:
54
+ '200':
55
+ description: A list of tags
56
+ content:
57
+ application/json:
58
+ schema:
59
+ $ref: '#/components/schemas/TagFindResult'
60
+ post:
61
+ summary: Create a tag
62
+ operationId: createTag
63
+ requestBody:
64
+ required: true
65
+ content:
66
+ application/json:
67
+ schema:
68
+ $ref: '#/components/schemas/TagCreateBody'
69
+ responses:
70
+ '201':
71
+ description: Tag created
72
+ content:
73
+ application/json:
74
+ schema:
75
+ $ref: '#/components/schemas/TagCreateResult'
76
+ /tag/{id}:
77
+ get:
78
+ summary: Get a tag by ID
79
+ operationId: getTag
80
+ parameters:
81
+ - in: path
82
+ name: id
83
+ required: true
84
+ schema:
85
+ type: string
86
+ responses:
87
+ '200':
88
+ description: Tag details
89
+ content:
90
+ application/json:
91
+ schema:
92
+ $ref: '#/components/schemas/TagGetResult'
93
+ put:
94
+ summary: Update a tag
95
+ operationId: updateTag
96
+ parameters:
97
+ - in: path
98
+ name: id
99
+ required: true
100
+ schema:
101
+ type: string
102
+ requestBody:
103
+ required: true
104
+ content:
105
+ application/json:
106
+ schema:
107
+ $ref: '#/components/schemas/TagUpdateBody'
108
+ responses:
109
+ '200':
110
+ description: Tag updated
111
+ content:
112
+ application/json:
113
+ schema:
114
+ $ref: '#/components/schemas/TagUpdateResult'
115
+ delete:
116
+ summary: Remove a tag
117
+ operationId: removeTag
118
+ parameters:
119
+ - in: path
120
+ name: id
121
+ required: true
122
+ schema:
123
+ type: string
124
+ responses:
125
+ '200':
126
+ description: Tag removed
127
+ content:
128
+ application/json:
129
+ schema:
130
+ $ref: '#/components/schemas/TagRemoveResult'
131
+ components:
132
+ schemas:
133
+ TagFindResult:
134
+ type: object
135
+ description: Result of finding tags
136
+ properties:
137
+ data:
138
+ type: array
139
+ items:
140
+ $ref: '#/components/schemas/TagSchema'
141
+ total_result:
142
+ type: number
143
+ description: Total number of tags
144
+ current_count:
145
+ type: number
146
+ description: Count of tags in current page
147
+ total_pages:
148
+ type: number
149
+ description: Total number of pages
150
+ current_page:
151
+ type: number
152
+ description: Current page number
153
+ per_page:
154
+ type: number
155
+ description: Number of tags per page
156
+ first_page_url:
157
+ type: string
158
+ description: URL for the first page
159
+ last_page_url:
160
+ type: string
161
+ description: URL for the last page
162
+ next_page_url:
163
+ type: string
164
+ nullable: true
165
+ description: URL for the next page
166
+ prev_page_url:
167
+ type: string
168
+ nullable: true
169
+ description: URL for the previous page
170
+ path:
171
+ type: string
172
+ description: Base URL path
173
+ TagSchema:
174
+ type: object
175
+ description: Tag schema
176
+ properties:
177
+ _id:
178
+ type: string
179
+ description: Unique identifier for the tag
180
+ name:
181
+ type: string
182
+ description: Name of the tag
183
+ disabled:
184
+ type: boolean
185
+ description: Whether the tag is disabled
186
+ integration_meta:
187
+ type: object
188
+ additionalProperties: true
189
+ description: Integration metadata
190
+ company_namespace:
191
+ type: array
192
+ items:
193
+ type: string
194
+ description: Company namespaces
195
+ createdAt:
196
+ type: string
197
+ format: date-time
198
+ description: Creation timestamp
199
+ updatedAt:
200
+ type: string
201
+ format: date-time
202
+ description: Last update timestamp
203
+ __v:
204
+ type: number
205
+ description: Version number
206
+ TagCreateBody:
207
+ type: object
208
+ description: Body for creating a tag
209
+ required:
210
+ - name
211
+ - company_namespace
212
+ properties:
213
+ name:
214
+ type: string
215
+ description: Name of the tag
216
+ disabled:
217
+ type: boolean
218
+ description: Whether the tag is disabled
219
+ integration_meta:
220
+ type: object
221
+ additionalProperties: true
222
+ description: Integration metadata
223
+ company_namespace:
224
+ type: array
225
+ items:
226
+ type: string
227
+ description: Company namespaces
228
+ TagCreateResult:
229
+ $ref: '#/components/schemas/TagSchema'
230
+ description: Result of creating a tag
231
+ TagGetResult:
232
+ $ref: '#/components/schemas/TagSchema'
233
+ description: Result of getting a tag
234
+ TagUpdateBody:
235
+ type: object
236
+ description: Body for updating a tag
237
+ properties:
238
+ name:
239
+ type: string
240
+ description: Name of the tag
241
+ disabled:
242
+ type: boolean
243
+ description: Whether the tag is disabled
244
+ integration_meta:
245
+ type: object
246
+ additionalProperties: true
247
+ description: Integration metadata
248
+ company_namespace:
249
+ type: array
250
+ items:
251
+ type: string
252
+ description: Company namespaces
253
+ _id:
254
+ type: string
255
+ description: Unique identifier for the tag
256
+ createdAt:
257
+ type: string
258
+ format: date-time
259
+ description: Creation timestamp
260
+ updatedAt:
261
+ type: string
262
+ format: date-time
263
+ description: Last update timestamp
264
+ __v:
265
+ type: number
266
+ description: Version number
267
+ TagUpdateResult:
268
+ $ref: '#/components/schemas/TagSchema'
269
+ description: Result of updating a tag
270
+ TagRemoveResult:
271
+ $ref: '#/components/schemas/TagSchema'
272
+ description: Result of removing a tag
@@ -0,0 +1,303 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - Tax
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo Tax endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /tax:
10
+ get:
11
+ summary: Find taxes
12
+ operationId: findTaxes
13
+ parameters:
14
+ - in: query
15
+ name: params
16
+ schema:
17
+ type: object
18
+ properties:
19
+ _id:
20
+ oneOf:
21
+ - type: array
22
+ items:
23
+ type: string
24
+ - type: string
25
+ search:
26
+ type: string
27
+ name:
28
+ oneOf:
29
+ - type: array
30
+ items:
31
+ type: string
32
+ - type: string
33
+ rate:
34
+ oneOf:
35
+ - type: array
36
+ items:
37
+ type: number
38
+ - type: number
39
+ type:
40
+ type: string
41
+ enum: [inclusive, additive, "N/A"]
42
+ disabled:
43
+ type: boolean
44
+ from_updatedAt:
45
+ type: number
46
+ from__id:
47
+ type: string
48
+ to__id:
49
+ type: string
50
+ sortBy:
51
+ type: array
52
+ items:
53
+ type: object
54
+ properties:
55
+ field:
56
+ type: string
57
+ enum: [_id]
58
+ type:
59
+ type: string
60
+ enum: [asc, desc]
61
+ description: Query parameters for filtering taxes
62
+ responses:
63
+ '200':
64
+ description: A list of taxes
65
+ content:
66
+ application/json:
67
+ schema:
68
+ $ref: '#/components/schemas/TaxFindResult'
69
+ post:
70
+ summary: Create a tax
71
+ operationId: createTax
72
+ requestBody:
73
+ required: true
74
+ content:
75
+ application/json:
76
+ schema:
77
+ $ref: '#/components/schemas/TaxCreateBody'
78
+ responses:
79
+ '201':
80
+ description: Tax created
81
+ content:
82
+ application/json:
83
+ schema:
84
+ $ref: '#/components/schemas/TaxCreateResult'
85
+ /tax/{id}:
86
+ get:
87
+ summary: Get a tax by ID
88
+ operationId: getTax
89
+ parameters:
90
+ - in: path
91
+ name: id
92
+ required: true
93
+ schema:
94
+ type: string
95
+ responses:
96
+ '200':
97
+ description: Tax details
98
+ content:
99
+ application/json:
100
+ schema:
101
+ $ref: '#/components/schemas/TaxGetResult'
102
+ put:
103
+ summary: Update a tax
104
+ operationId: updateTax
105
+ parameters:
106
+ - in: path
107
+ name: id
108
+ required: true
109
+ schema:
110
+ type: string
111
+ requestBody:
112
+ required: true
113
+ content:
114
+ application/json:
115
+ schema:
116
+ $ref: '#/components/schemas/TaxUpdateBody'
117
+ responses:
118
+ '200':
119
+ description: Tax updated
120
+ content:
121
+ application/json:
122
+ schema:
123
+ $ref: '#/components/schemas/TaxUpdateResult'
124
+ delete:
125
+ summary: Remove a tax
126
+ operationId: removeTax
127
+ parameters:
128
+ - in: path
129
+ name: id
130
+ required: true
131
+ schema:
132
+ type: string
133
+ responses:
134
+ '200':
135
+ description: Tax removed
136
+ content:
137
+ application/json:
138
+ schema:
139
+ $ref: '#/components/schemas/TaxRemoveResult'
140
+ components:
141
+ schemas:
142
+ TaxFindResult:
143
+ type: object
144
+ description: Result of finding taxes
145
+ properties:
146
+ data:
147
+ type: array
148
+ items:
149
+ $ref: '#/components/schemas/TaxSchema'
150
+ total_result:
151
+ type: number
152
+ description: Total number of taxes
153
+ current_count:
154
+ type: number
155
+ description: Count of taxes in current page
156
+ total_pages:
157
+ type: number
158
+ description: Total number of pages
159
+ current_page:
160
+ type: number
161
+ description: Current page number
162
+ per_page:
163
+ type: number
164
+ description: Number of taxes per page
165
+ first_page_url:
166
+ type: string
167
+ description: URL for the first page
168
+ last_page_url:
169
+ type: string
170
+ description: URL for the last page
171
+ next_page_url:
172
+ type: string
173
+ nullable: true
174
+ description: URL for the next page
175
+ prev_page_url:
176
+ type: string
177
+ nullable: true
178
+ description: URL for the previous page
179
+ path:
180
+ type: string
181
+ description: Base URL path
182
+ TaxSchema:
183
+ type: object
184
+ description: Tax schema
185
+ properties:
186
+ _id:
187
+ type: string
188
+ description: Unique identifier for the tax
189
+ name:
190
+ type: string
191
+ description: Name of the tax
192
+ rate:
193
+ type: number
194
+ description: Tax rate
195
+ type:
196
+ type: string
197
+ enum: [inclusive, additive, "N/A"]
198
+ description: Type of tax (inclusive, additive, or N/A)
199
+ disabled:
200
+ type: boolean
201
+ description: Whether the tax is disabled
202
+ integration_meta:
203
+ type: object
204
+ additionalProperties: true
205
+ description: Integration metadata
206
+ company_namespace:
207
+ type: array
208
+ items:
209
+ type: string
210
+ description: Company namespaces
211
+ createdAt:
212
+ type: string
213
+ format: date-time
214
+ description: Creation timestamp
215
+ updatedAt:
216
+ type: string
217
+ format: date-time
218
+ description: Last update timestamp
219
+ __v:
220
+ type: number
221
+ description: Version number
222
+ TaxCreateBody:
223
+ type: object
224
+ description: Body for creating a tax
225
+ required:
226
+ - name
227
+ - rate
228
+ - type
229
+ properties:
230
+ name:
231
+ type: string
232
+ description: Name of the tax
233
+ rate:
234
+ type: number
235
+ description: Tax rate
236
+ type:
237
+ type: string
238
+ enum: [inclusive, additive, "N/A"]
239
+ description: Type of tax
240
+ disabled:
241
+ type: boolean
242
+ description: Whether the tax is disabled
243
+ integration_meta:
244
+ type: object
245
+ additionalProperties: true
246
+ description: Integration metadata
247
+ company_namespace:
248
+ type: array
249
+ items:
250
+ type: string
251
+ description: Company namespaces
252
+ TaxCreateResult:
253
+ $ref: '#/components/schemas/TaxSchema'
254
+ description: Result of creating a tax
255
+ TaxGetResult:
256
+ $ref: '#/components/schemas/TaxSchema'
257
+ description: Result of getting a tax
258
+ TaxUpdateBody:
259
+ type: object
260
+ description: Body for updating a tax
261
+ properties:
262
+ name:
263
+ type: string
264
+ description: Name of the tax
265
+ rate:
266
+ type: number
267
+ description: Tax rate
268
+ type:
269
+ type: string
270
+ enum: [inclusive, additive, "N/A"]
271
+ description: Type of tax
272
+ disabled:
273
+ type: boolean
274
+ description: Whether the tax is disabled
275
+ integration_meta:
276
+ type: object
277
+ additionalProperties: true
278
+ description: Integration metadata
279
+ company_namespace:
280
+ type: array
281
+ items:
282
+ type: string
283
+ description: Company namespaces
284
+ _id:
285
+ type: string
286
+ description: Unique identifier for the tax
287
+ createdAt:
288
+ type: string
289
+ format: date-time
290
+ description: Creation timestamp
291
+ updatedAt:
292
+ type: string
293
+ format: date-time
294
+ description: Last update timestamp
295
+ __v:
296
+ type: number
297
+ description: Version number
298
+ TaxUpdateResult:
299
+ $ref: '#/components/schemas/TaxSchema'
300
+ description: Result of updating a tax
301
+ TaxRemoveResult:
302
+ $ref: '#/components/schemas/TaxSchema'
303
+ description: Result of removing a tax