@fugood/bricks-project 2.22.0 → 2.22.2
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/compile/action-name-map.ts +0 -16
- package/package.json +2 -3
- package/types/bricks/index.ts +0 -1
- package/types/generators/LlmGgml.ts +4 -4
- package/types/generators/index.ts +0 -1
- package/types/system.ts +1 -1
- package/utils/event-props.ts +0 -13
- package/types/generators/TapToPayOnIPhone.ts +0 -175
|
@@ -498,22 +498,6 @@ export const templateActionNameMap = {
|
|
|
498
498
|
category: 'GENERATOR_INTENT_CATEGORY',
|
|
499
499
|
},
|
|
500
500
|
},
|
|
501
|
-
GENERATOR_TAPPAY_T2P_IOS: {
|
|
502
|
-
GENERATOR_TAPPAY_T2P_IOS_BIND: {
|
|
503
|
-
bindId: 'GENERATOR_TAPPAY_T2P_IOS_BIND_ID',
|
|
504
|
-
bindDescription: 'GENERATOR_TAPPAY_T2P_IOS_BIND_DESCRIPTION',
|
|
505
|
-
},
|
|
506
|
-
GENERATOR_TAPPAY_T2P_IOS_READ_CARD_AND_AUTHORIZATION: {
|
|
507
|
-
amount: 'GENERATOR_TAPPAY_T2P_IOS_AMOUNT',
|
|
508
|
-
orderNumber: 'GENERATOR_TAPPAY_T2P_IOS_ORDER_NUMBER',
|
|
509
|
-
bankTransactionId: 'GENERATOR_TAPPAY_T2P_IOS_BANK_TRANSACTION_ID',
|
|
510
|
-
},
|
|
511
|
-
GENERATOR_TAPPAY_T2P_IOS_GET_RECEIPT: {
|
|
512
|
-
receiptIdentifier: 'GENERATOR_TAPPAY_T2P_IOS_RECEIPT_IDENTIFIER',
|
|
513
|
-
type: 'GENERATOR_TAPPAY_T2P_IOS_TYPE',
|
|
514
|
-
email: 'GENERATOR_TAPPAY_T2P_IOS_EMAIL',
|
|
515
|
-
},
|
|
516
|
-
},
|
|
517
501
|
GENERATOR_CASTLES_PAY: {
|
|
518
502
|
GENERATOR_CASTLES_PAY_SALE: {
|
|
519
503
|
amount: 'GENERATOR_CASTLES_PAY_AMOUNT',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.2",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node scripts/build.js"
|
|
@@ -13,6 +13,5 @@
|
|
|
13
13
|
"escodegen": "^2.1.0",
|
|
14
14
|
"lodash": "^4.17.4",
|
|
15
15
|
"uuid": "^8.3.1"
|
|
16
|
-
}
|
|
17
|
-
"gitHead": "d61c326c30686b72477e3194bebe521b10ec83d8"
|
|
16
|
+
}
|
|
18
17
|
}
|
package/types/bricks/index.ts
CHANGED
|
@@ -487,7 +487,7 @@ Default property:
|
|
|
487
487
|
accelVariant?: 'default' | 'vulkan' | 'cuda' | DataLink
|
|
488
488
|
/* Main GPU index */
|
|
489
489
|
mainGpu?: number | DataLink
|
|
490
|
-
/* Number of GPU layers
|
|
490
|
+
/* Number of GPU layers */
|
|
491
491
|
gpuLayers?: number | DataLink
|
|
492
492
|
/* Use memory lock */
|
|
493
493
|
useMlock?: boolean | DataLink
|
|
@@ -680,9 +680,9 @@ Default property:
|
|
|
680
680
|
|
|
681
681
|
## Notice
|
|
682
682
|
- The device RAM must be larger than 8GB
|
|
683
|
-
- iOS:
|
|
684
|
-
- macOS:
|
|
685
|
-
- Android:
|
|
683
|
+
- iOS: Recommended use M1+ / A17+ chip device. Supported GPU acceleration by Metal.
|
|
684
|
+
- macOS: Recommended use M1+ chip device. Supported GPU acceleration by Metal.
|
|
685
|
+
- Android: Recommended use Android 13+ system. Supported GPU acceleration by OpenCL, currently only for Qualcomm Adreno 700+ GPUs, other GPUs are not supported.
|
|
686
686
|
- Linux / Windows: Supported GPU acceleration, you can choose `vulkan` or `cuda` backend in Accel Variant property */
|
|
687
687
|
export type GeneratorLLM = Generator &
|
|
688
688
|
GeneratorLLMDef & {
|
|
@@ -27,7 +27,6 @@ export * from './BlePeripheral'
|
|
|
27
27
|
export * from './Question'
|
|
28
28
|
export * from './Information'
|
|
29
29
|
export * from './Intent'
|
|
30
|
-
export * from './TapToPayOnIPhone'
|
|
31
30
|
export * from './CastlesPay'
|
|
32
31
|
export * from './SpeechToTextPlatform'
|
|
33
32
|
export * from './ThermalPrinter'
|
package/types/system.ts
CHANGED
|
@@ -594,7 +594,7 @@ export type SystemActionThrowException = ActionWithParams & {
|
|
|
594
594
|
params?: Array<
|
|
595
595
|
| {
|
|
596
596
|
input: 'behavior'
|
|
597
|
-
value?: 'application' | '
|
|
597
|
+
value?: 'application' | 'native' | DataLink | EventProperty
|
|
598
598
|
mapping?: string
|
|
599
599
|
}
|
|
600
600
|
| {
|
package/utils/event-props.ts
CHANGED
|
@@ -573,19 +573,6 @@ export const templateEventPropsMap = {
|
|
|
573
573
|
'GENERATOR_INTENT_ERROR', // type: string
|
|
574
574
|
],
|
|
575
575
|
},
|
|
576
|
-
GENERATOR_TAPPAY_T2P_IOS: {
|
|
577
|
-
readerEndConfiguring: [
|
|
578
|
-
'GENERATOR_TAPPAY_T2P_IOS_ERROR', // type: string
|
|
579
|
-
],
|
|
580
|
-
readerEventDidUpdated: [
|
|
581
|
-
'GENERATOR_TAPPAY_T2P_IOS_EVENT_NAME', // type: string
|
|
582
|
-
'GENERATOR_TAPPAY_T2P_IOS_EVENT_DATA', // type: any
|
|
583
|
-
],
|
|
584
|
-
onError: [
|
|
585
|
-
'GENERATOR_TAPPAY_T2P_IOS_METHOD', // type: string
|
|
586
|
-
'GENERATOR_TAPPAY_T2P_IOS_ERROR', // type: string
|
|
587
|
-
],
|
|
588
|
-
},
|
|
589
576
|
GENERATOR_CASTLES_PAY: {
|
|
590
577
|
onActionSuccess: [
|
|
591
578
|
'GENERATOR_CASTLES_PAY_ACTION_RESULT', // type: object
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
2
|
-
import type { Data, DataLink } from '../data'
|
|
3
|
-
import type {
|
|
4
|
-
Generator,
|
|
5
|
-
EventAction,
|
|
6
|
-
ActionWithDataParams,
|
|
7
|
-
ActionWithParams,
|
|
8
|
-
Action,
|
|
9
|
-
EventProperty,
|
|
10
|
-
} from '../common'
|
|
11
|
-
|
|
12
|
-
/* Init */
|
|
13
|
-
export type GeneratorTapPayT2PActionSetup = Action & {
|
|
14
|
-
__actionName: 'GENERATOR_TAPPAY_T2P_IOS_SETUP'
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* <No doc yet> */
|
|
18
|
-
export type GeneratorTapPayT2PActionFetchBindingList = Action & {
|
|
19
|
-
__actionName: 'GENERATOR_TAPPAY_T2P_IOS_FETCH_BINDING_LIST'
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* <No doc yet> */
|
|
23
|
-
export type GeneratorTapPayT2PActionBind = ActionWithParams & {
|
|
24
|
-
__actionName: 'GENERATOR_TAPPAY_T2P_IOS_BIND'
|
|
25
|
-
params?: Array<
|
|
26
|
-
| {
|
|
27
|
-
input: 'bindId'
|
|
28
|
-
value?: number | DataLink | EventProperty
|
|
29
|
-
mapping?: string
|
|
30
|
-
}
|
|
31
|
-
| {
|
|
32
|
-
input: 'bindDescription'
|
|
33
|
-
value?: string | DataLink | EventProperty
|
|
34
|
-
mapping?: string
|
|
35
|
-
}
|
|
36
|
-
>
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/* <No doc yet> */
|
|
40
|
-
export type GeneratorTapPayT2PActionBindDelete = Action & {
|
|
41
|
-
__actionName: 'GENERATOR_TAPPAY_T2P_IOS_BIND_DELETE'
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* <No doc yet> */
|
|
45
|
-
export type GeneratorTapPayT2PActionConfigureReader = Action & {
|
|
46
|
-
__actionName: 'GENERATOR_TAPPAY_T2P_IOS_CONFIGURE_READER'
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* <No doc yet> */
|
|
50
|
-
export type GeneratorTapPayT2PActionReadCardAndAuthorization = ActionWithParams & {
|
|
51
|
-
__actionName: 'GENERATOR_TAPPAY_T2P_IOS_READ_CARD_AND_AUTHORIZATION'
|
|
52
|
-
params?: Array<
|
|
53
|
-
| {
|
|
54
|
-
input: 'amount'
|
|
55
|
-
value?: number | DataLink | EventProperty
|
|
56
|
-
mapping?: string
|
|
57
|
-
}
|
|
58
|
-
| {
|
|
59
|
-
input: 'orderNumber'
|
|
60
|
-
value?: string | DataLink | EventProperty
|
|
61
|
-
mapping?: string
|
|
62
|
-
}
|
|
63
|
-
| {
|
|
64
|
-
input: 'bankTransactionId'
|
|
65
|
-
value?: string | DataLink | EventProperty
|
|
66
|
-
mapping?: string
|
|
67
|
-
}
|
|
68
|
-
>
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* <No doc yet> */
|
|
72
|
-
export type GeneratorTapPayT2PActionGetReceipt = ActionWithParams & {
|
|
73
|
-
__actionName: 'GENERATOR_TAPPAY_T2P_IOS_GET_RECEIPT'
|
|
74
|
-
params?: Array<
|
|
75
|
-
| {
|
|
76
|
-
input: 'receiptIdentifier'
|
|
77
|
-
value?: string | DataLink | EventProperty
|
|
78
|
-
mapping?: string
|
|
79
|
-
}
|
|
80
|
-
| {
|
|
81
|
-
input: 'type'
|
|
82
|
-
value?: 'html' | 'pkpass' | DataLink | EventProperty
|
|
83
|
-
mapping?: string
|
|
84
|
-
}
|
|
85
|
-
| {
|
|
86
|
-
input: 'email'
|
|
87
|
-
value?: string | DataLink | EventProperty
|
|
88
|
-
mapping?: string
|
|
89
|
-
}
|
|
90
|
-
>
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
interface GeneratorTapPayT2PDef {
|
|
94
|
-
/*
|
|
95
|
-
Default property:
|
|
96
|
-
{
|
|
97
|
-
"page": 0,
|
|
98
|
-
"countPerPage": 10
|
|
99
|
-
}
|
|
100
|
-
*/
|
|
101
|
-
property?: {
|
|
102
|
-
/* Initializtion */
|
|
103
|
-
init?: boolean | DataLink
|
|
104
|
-
/* App Key */
|
|
105
|
-
appKey?: string | DataLink
|
|
106
|
-
/* Enviroment */
|
|
107
|
-
enviroment?: 'sandbox' | 'production' | DataLink
|
|
108
|
-
/* Partner Account */
|
|
109
|
-
partnerAccount?: string | DataLink
|
|
110
|
-
/* Page */
|
|
111
|
-
page?: number | DataLink
|
|
112
|
-
/* Count per page */
|
|
113
|
-
countPerPage?: number | DataLink
|
|
114
|
-
/* Acquirer Merchant ID */
|
|
115
|
-
acquirerMerchantId?: string | DataLink
|
|
116
|
-
/* Acquirer Terminal ID */
|
|
117
|
-
acquirerTerminalId?: string | DataLink
|
|
118
|
-
/* Bind ID */
|
|
119
|
-
bindId?: number | DataLink
|
|
120
|
-
/* Bind Description */
|
|
121
|
-
bindDescription?: string | DataLink
|
|
122
|
-
}
|
|
123
|
-
events?: {
|
|
124
|
-
/* <No doc yet> */
|
|
125
|
-
readerStartConfiguring?: Array<EventAction>
|
|
126
|
-
/* <No doc yet> */
|
|
127
|
-
readerEndConfiguring?: Array<EventAction>
|
|
128
|
-
/* <No doc yet> */
|
|
129
|
-
readerEventDidUpdated?: Array<EventAction>
|
|
130
|
-
/* <No doc yet> */
|
|
131
|
-
onError?: Array<EventAction>
|
|
132
|
-
}
|
|
133
|
-
outlets?: {
|
|
134
|
-
/* undefined */
|
|
135
|
-
error?: () => Data
|
|
136
|
-
/* undefined */
|
|
137
|
-
isReaderBinded?: () => Data
|
|
138
|
-
/* undefined */
|
|
139
|
-
isReaderReady?: () => Data
|
|
140
|
-
/* undefined */
|
|
141
|
-
bindingList?: () => Data
|
|
142
|
-
/* undefined */
|
|
143
|
-
lastTransactionResult?: () => Data
|
|
144
|
-
/* undefined */
|
|
145
|
-
getReceiptResult?: () => Data
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/* [UNSTABLE] Tap to Pay on iPhone (iOS only) */
|
|
150
|
-
export type GeneratorTapPayT2P = Generator &
|
|
151
|
-
GeneratorTapPayT2PDef & {
|
|
152
|
-
templateKey: 'GENERATOR_TAPPAY_T2P_IOS'
|
|
153
|
-
switches: Array<
|
|
154
|
-
SwitchDef &
|
|
155
|
-
GeneratorTapPayT2PDef & {
|
|
156
|
-
conds?: Array<{
|
|
157
|
-
method: '==' | '!=' | '>' | '<' | '>=' | '<='
|
|
158
|
-
cond:
|
|
159
|
-
| SwitchCondInnerStateCurrentCanvas
|
|
160
|
-
| SwitchCondData
|
|
161
|
-
| {
|
|
162
|
-
__typename: 'SwitchCondInnerStateOutlet'
|
|
163
|
-
outlet:
|
|
164
|
-
| 'error'
|
|
165
|
-
| 'isReaderBinded'
|
|
166
|
-
| 'isReaderReady'
|
|
167
|
-
| 'bindingList'
|
|
168
|
-
| 'lastTransactionResult'
|
|
169
|
-
| 'getReceiptResult'
|
|
170
|
-
value: any
|
|
171
|
-
}
|
|
172
|
-
}>
|
|
173
|
-
}
|
|
174
|
-
>
|
|
175
|
-
}
|