@things-factory/sales-base 6.0.69 → 6.0.71

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/sales-base",
3
- "version": "6.0.69",
3
+ "version": "6.0.71",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -23,17 +23,17 @@
23
23
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
24
24
  },
25
25
  "dependencies": {
26
- "@things-factory/attachment-base": "^6.0.67",
27
- "@things-factory/auth-base": "^6.0.67",
28
- "@things-factory/biz-base": "^6.0.67",
29
- "@things-factory/code-base": "^6.0.67",
30
- "@things-factory/integration-sftp": "^6.0.69",
31
- "@things-factory/notification": "^6.0.67",
32
- "@things-factory/product-base": "^6.0.67",
33
- "@things-factory/setting-base": "^6.0.67",
34
- "@things-factory/shell": "^6.0.67",
35
- "@things-factory/transport-base": "^6.0.67",
36
- "@things-factory/warehouse-base": "^6.0.69"
26
+ "@things-factory/attachment-base": "^6.0.71",
27
+ "@things-factory/auth-base": "^6.0.71",
28
+ "@things-factory/biz-base": "^6.0.71",
29
+ "@things-factory/code-base": "^6.0.71",
30
+ "@things-factory/integration-sftp": "^6.0.71",
31
+ "@things-factory/notification": "^6.0.71",
32
+ "@things-factory/product-base": "^6.0.71",
33
+ "@things-factory/setting-base": "^6.0.71",
34
+ "@things-factory/shell": "^6.0.71",
35
+ "@things-factory/transport-base": "^6.0.71",
36
+ "@things-factory/warehouse-base": "^6.0.71"
37
37
  },
38
- "gitHead": "d0198bba193b275f29fffd8c3963f556db4dda92"
38
+ "gitHead": "ab2f27c4e2c61002aa0e47925d2dcf523725eaa7"
39
39
  }
@@ -14,7 +14,7 @@ import { ArrivalNotice } from './arrival-notice'
14
14
 
15
15
  @Resolver(ArrivalNotice)
16
16
  export class ArrivalNoticeQuery {
17
- @Directive('@privilege(category: "order", privilege: "query")')
17
+ @Directive('@privilege(category: "order", privilege: "query", domainOwnerGranted: true)')
18
18
  @Query(returns => ArrivalNotice)
19
19
  async arrivalNotice(
20
20
  @Ctx() context: ResolverContext,
@@ -113,7 +113,7 @@ export class ArrivalNoticeQuery {
113
113
  }
114
114
  }
115
115
 
116
- @Directive('@privilege(category: "order_customer", privilege: "query")')
116
+ @Directive('@privilege(category: "order_customer", privilege: "query", domainOwnerGranted: true)')
117
117
  @Query(returns => ArrivalNoticeList)
118
118
  async arrivalNotices(@Ctx() context: ResolverContext, @Args() params: ListParam): Promise<ArrivalNoticeList> {
119
119
  const { domain, user } = context.state
@@ -203,7 +203,7 @@ export class ArrivalNoticeQuery {
203
203
  return { items, total }
204
204
  }
205
205
 
206
- @Directive('@privilege(category: "order_warehouse", privilege: "query")')
206
+ @Directive('@privilege(category: "order_warehouse", privilege: "query", domainOwnerGranted: true)')
207
207
  @Query(returns => ArrivalNoticeList)
208
208
  async arrivalNoticeRequests(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ArrivalNoticeList> {
209
209
  try {
@@ -20,7 +20,7 @@ import { InventoryUtil } from '../../utils'
20
20
 
21
21
  @Resolver()
22
22
  export class OtherQuery {
23
- @Directive('@privilege(category: "inventory", privilege: "query")')
23
+ @Directive('@privilege(category: "inventory", privilege: "query", domainOwnerGranted: true)')
24
24
  @Directive('@transaction')
25
25
  @Query(returns => InventoryProductGroupList)
26
26
  async allBizplaceProductInventory(
@@ -59,7 +59,7 @@ export class OtherQuery {
59
59
  return { items, total }
60
60
  }
61
61
 
62
- @Directive('@privilege(category: "inventory", privilege: "query")')
62
+ @Directive('@privilege(category: "inventory", privilege: "query", domainOwnerGranted: true)')
63
63
  @Directive('@transaction')
64
64
  @Query(returns => InventoryProductGroupList)
65
65
  async inventoryProductGroup(
@@ -136,7 +136,7 @@ export class OtherQuery {
136
136
  return { items, total }
137
137
  }
138
138
 
139
- @Directive('@privilege(category: "order_customer", privilege: "query")')
139
+ @Directive('@privilege(category: "order_customer", privilege: "query", domainOwnerGranted: true)')
140
140
  @Directive('@transaction')
141
141
  @Query(returns => [OrderInventory])
142
142
  async bulkUploadValidateWarehousePartnersProductsQuantity(
@@ -296,7 +296,7 @@ export class OtherQuery {
296
296
  return orderBy(newOrderInventories, ['isError'], ['desc'])
297
297
  }
298
298
 
299
- @Directive('@privilege(category: "order_customer", privilege: "query")')
299
+ @Directive('@privilege(category: "order_customer", privilege: "query", domainOwnerGranted: true)')
300
300
  @Directive('@transaction')
301
301
  @Query(returns => [InventoryProductGroup])
302
302
  async bulkUploadValidateOrderProducts(
@@ -431,7 +431,7 @@ export class OtherQuery {
431
431
 
432
432
  return newOrderProducts
433
433
  }
434
- @Directive('@privilege(category: "order_customer", privilege: "query")')
434
+ @Directive('@privilege(category: "order_customer", privilege: "query", domainOwnerGranted: true)')
435
435
  @Directive('@transaction')
436
436
  @Query(returns => [InventoryProductGroup])
437
437
  async bulkUploadValidatePoOrderProducts(
@@ -16,7 +16,7 @@ import { NewReleaseGood, ReleasableInventoryList, ReleaseGoodList } from './rele
16
16
 
17
17
  @Resolver(ReleaseGood)
18
18
  export class ReleaseGoodQuery {
19
- @Directive('@privilege(category: "order_customer", privilege: "query")')
19
+ @Directive('@privilege(category: "order_customer", privilege: "query", domainOwnerGranted: true)')
20
20
  @Query(returns => ReleaseGoodList)
21
21
  async releaseGoods(@Ctx() context: ResolverContext, @Args() params: ListParam): Promise<ReleaseGoodList> {
22
22
  try {
@@ -108,7 +108,7 @@ export class ReleaseGoodQuery {
108
108
  }
109
109
  }
110
110
 
111
- @Directive('@privilege(category: "order", privilege: "query")')
111
+ @Directive('@privilege(category: "order", privilege: "query", domainOwnerGranted: true)')
112
112
  @Query(returns => ReleaseGood)
113
113
  async releaseGood(
114
114
  @Ctx() context: ResolverContext,
@@ -157,7 +157,7 @@ export class ReleaseGoodQuery {
157
157
  }
158
158
  }
159
159
 
160
- @Directive('@privilege(category: "order", privilege: "query")')
160
+ @Directive('@privilege(category: "order", privilege: "query", domainOwnerGranted: true)')
161
161
  @Directive('@transaction')
162
162
  @Query(returns => ReleaseGood)
163
163
  async releaseGoodDetail(
@@ -270,7 +270,7 @@ export class ReleaseGoodQuery {
270
270
  }
271
271
  }
272
272
 
273
- @Directive('@privilege(category: "order_warehouse", privilege: "query")')
273
+ @Directive('@privilege(category: "order_warehouse", privilege: "query", domainOwnerGranted: true)')
274
274
  @Query(returns => ReleaseGoodList)
275
275
  async releaseGoodRequests(@Ctx() context: ResolverContext, @Args() params: ListParam): Promise<ReleaseGoodList> {
276
276
  try {
@@ -507,7 +507,7 @@ export class ReleaseGoodQuery {
507
507
  }
508
508
  }
509
509
 
510
- @Directive('@privilege(category: "order", privilege: "query")')
510
+ @Directive('@privilege(category: "order", privilege: "query", domainOwnerGranted: true)')
511
511
  @Query(returns => ReleasableInventoryList)
512
512
  async releasableInventories(
513
513
  @Ctx() context: ResolverContext,
@@ -139,7 +139,7 @@ export class ReturnOrderQuery {
139
139
  }
140
140
  }
141
141
 
142
- @Directive('@privilege(category: "order_warehouse", privilege: "query")')
142
+ @Directive('@privilege(category: "order_warehouse", privilege: "query", domainOwnerGranted: true)')
143
143
  @Query(returns => ReturnOrderList)
144
144
  async returnOrderRequests(
145
145
  @Ctx() context: ResolverContext,
@@ -9,7 +9,7 @@ import { Vas } from './vas'
9
9
 
10
10
  @Resolver(Vas)
11
11
  export class VasQuery {
12
- @Directive('@privilege(category: "vas", privilege: "query")')
12
+ @Directive('@privilege(category: "vas", privilege: "query", domainOwnerGranted: true)')
13
13
  @Query(returns => VasList)
14
14
  async vass(
15
15
  @Ctx() context: ResolverContext,