|
@@ -84,6 +84,39 @@ export class SitesEndpoint extends BaseEndpointComponent {
|
|
|
requiresAuth: true
|
|
requiresAuth: true
|
|
|
}
|
|
}
|
|
|
),
|
|
),
|
|
|
|
|
+ this.createEndpoint(
|
|
|
|
|
+ 'GET',
|
|
|
|
|
+ '/api/sites/deleted',
|
|
|
|
|
+ this.getDeletedShops.bind(this),
|
|
|
|
|
+ {
|
|
|
|
|
+ summary: 'List deleted sites',
|
|
|
|
|
+ description: 'Retrieves a list of soft-deleted sites that can be force-deleted',
|
|
|
|
|
+ tags: ['Sites'],
|
|
|
|
|
+ responses: {
|
|
|
|
|
+ '200': {
|
|
|
|
|
+ description: 'List of deleted sites',
|
|
|
|
|
+ schema: {
|
|
|
|
|
+ type: 'object',
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ sites: {
|
|
|
|
|
+ type: 'array',
|
|
|
|
|
+ items: {
|
|
|
|
|
+ type: 'object',
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ id: { type: 'string' },
|
|
|
|
|
+ custom_id: { type: 'string', nullable: true },
|
|
|
|
|
+ url: { type: 'string' },
|
|
|
|
|
+ deleted_at: { type: 'string' }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ requiresAuth: true
|
|
|
|
|
+ }
|
|
|
|
|
+ ),
|
|
|
this.createEndpoint(
|
|
this.createEndpoint(
|
|
|
'GET',
|
|
'GET',
|
|
|
'/api/sites/:id',
|
|
'/api/sites/:id',
|
|
@@ -458,39 +491,6 @@ export class SitesEndpoint extends BaseEndpointComponent {
|
|
|
requiresAuth: true
|
|
requiresAuth: true
|
|
|
}
|
|
}
|
|
|
),
|
|
),
|
|
|
- this.createEndpoint(
|
|
|
|
|
- 'GET',
|
|
|
|
|
- '/api/sites/deleted',
|
|
|
|
|
- this.getDeletedShops.bind(this),
|
|
|
|
|
- {
|
|
|
|
|
- summary: 'List deleted shops',
|
|
|
|
|
- description: 'Retrieves a list of soft-deleted sites that can be force-deleted',
|
|
|
|
|
- tags: ['Sites'],
|
|
|
|
|
- responses: {
|
|
|
|
|
- '200': {
|
|
|
|
|
- description: 'List of deleted shops',
|
|
|
|
|
- schema: {
|
|
|
|
|
- type: 'object',
|
|
|
|
|
- properties: {
|
|
|
|
|
- sites: {
|
|
|
|
|
- type: 'array',
|
|
|
|
|
- items: {
|
|
|
|
|
- type: 'object',
|
|
|
|
|
- properties: {
|
|
|
|
|
- id: { type: 'string' },
|
|
|
|
|
- custom_id: { type: 'string', nullable: true },
|
|
|
|
|
- url: { type: 'string' },
|
|
|
|
|
- deleted_at: { type: 'string' }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- requiresAuth: true
|
|
|
|
|
- }
|
|
|
|
|
- ),
|
|
|
|
|
this.createEndpoint(
|
|
this.createEndpoint(
|
|
|
'DELETE',
|
|
'DELETE',
|
|
|
'/api/sites/:id/force',
|
|
'/api/sites/:id/force',
|