capacitor-hugin-gmp3 0.1.0

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/dist/docs.json ADDED
@@ -0,0 +1,519 @@
1
+ {
2
+ "api": {
3
+ "name": "CapacitorHuginGMP3Plugin",
4
+ "slug": "capacitorhugingmp3plugin",
5
+ "docs": "Ana plugin arayüzü. Hugin printer ile iletişim sağlayan tüm metodları tanımlar.",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "GetLibraryVersion",
10
+ "signature": "() => Promise<{ version: string; }>",
11
+ "parameters": [],
12
+ "returns": "Promise<{ version: string; }>",
13
+ "tags": [],
14
+ "docs": "Kütüphane sürümünü döner.",
15
+ "complexTypes": [],
16
+ "slug": "getlibraryversion"
17
+ },
18
+ {
19
+ "name": "Connect",
20
+ "signature": "(options: ConnectOptions) => Promise<{ connected: boolean; }>",
21
+ "parameters": [
22
+ {
23
+ "name": "options",
24
+ "docs": "Bağlantı bilgileri.",
25
+ "type": "ConnectOptions"
26
+ }
27
+ ],
28
+ "returns": "Promise<{ connected: boolean; }>",
29
+ "tags": [
30
+ {
31
+ "name": "param",
32
+ "text": "options Bağlantı bilgileri."
33
+ }
34
+ ],
35
+ "docs": "Cihaza bağlantı kurar.",
36
+ "complexTypes": [
37
+ "ConnectOptions"
38
+ ],
39
+ "slug": "connect"
40
+ },
41
+ {
42
+ "name": "Sale",
43
+ "signature": "(options: { saleItem: SaleItem; }) => Promise<{ orderNo?: number; result: boolean; message?: string; }>",
44
+ "parameters": [
45
+ {
46
+ "name": "options",
47
+ "docs": "Satış nesnesi (JSON string olarak).",
48
+ "type": "{ saleItem: SaleItem; }"
49
+ }
50
+ ],
51
+ "returns": "Promise<{ orderNo?: number | undefined; result: boolean; message?: string | undefined; }>",
52
+ "tags": [
53
+ {
54
+ "name": "param",
55
+ "text": "options Satış nesnesi (JSON string olarak)."
56
+ }
57
+ ],
58
+ "docs": "Satış işlemi başlatır.",
59
+ "complexTypes": [
60
+ "SaleItem"
61
+ ],
62
+ "slug": "sale"
63
+ },
64
+ {
65
+ "name": "PrintXReport",
66
+ "signature": "(type: 1 | 2 | 3) => Promise<{ result: boolean; message: string; }>",
67
+ "parameters": [
68
+ {
69
+ "name": "type",
70
+ "docs": "Rapor tipi (1 | 2 | 3).",
71
+ "type": "1 | 2 | 3"
72
+ }
73
+ ],
74
+ "returns": "Promise<{ result: boolean; message: string; }>",
75
+ "tags": [
76
+ {
77
+ "name": "param",
78
+ "text": "type Rapor tipi (1 | 2 | 3)."
79
+ }
80
+ ],
81
+ "docs": "X raporu yazdırır.",
82
+ "complexTypes": [],
83
+ "slug": "printxreport"
84
+ },
85
+ {
86
+ "name": "PrintZReport",
87
+ "signature": "() => Promise<{ result: boolean; }>",
88
+ "parameters": [],
89
+ "returns": "Promise<{ result: boolean; }>",
90
+ "tags": [],
91
+ "docs": "Z raporu yazdırır.",
92
+ "complexTypes": [],
93
+ "slug": "printzreport"
94
+ },
95
+ {
96
+ "name": "GetVatRates",
97
+ "signature": "() => Promise<string[]>",
98
+ "parameters": [],
99
+ "returns": "Promise<string[]>",
100
+ "tags": [],
101
+ "docs": "Kayıtlı KDV oranlarını getirir.",
102
+ "complexTypes": [],
103
+ "slug": "getvatrates"
104
+ },
105
+ {
106
+ "name": "GetDepartments",
107
+ "signature": "() => Promise<Department[]>",
108
+ "parameters": [],
109
+ "returns": "Promise<Department[]>",
110
+ "tags": [],
111
+ "docs": "Tanımlı departmanları getirir.",
112
+ "complexTypes": [
113
+ "Department"
114
+ ],
115
+ "slug": "getdepartments"
116
+ },
117
+ {
118
+ "name": "SetDepartment",
119
+ "signature": "(Department: Department) => Promise<{ result: boolean; }>",
120
+ "parameters": [
121
+ {
122
+ "name": "Department",
123
+ "docs": "Departman bilgileri.",
124
+ "type": "Department"
125
+ }
126
+ ],
127
+ "returns": "Promise<{ result: boolean; }>",
128
+ "tags": [
129
+ {
130
+ "name": "param",
131
+ "text": "Department Departman bilgileri."
132
+ }
133
+ ],
134
+ "docs": "Departman ekler veya günceller.",
135
+ "complexTypes": [
136
+ "Department"
137
+ ],
138
+ "slug": "setdepartment"
139
+ },
140
+ {
141
+ "name": "SetVatRate",
142
+ "signature": "(vatRate: VatRate) => Promise<{ result: boolean; }>",
143
+ "parameters": [
144
+ {
145
+ "name": "vatRate",
146
+ "docs": "KDV oran bilgisi.",
147
+ "type": "VatRate"
148
+ }
149
+ ],
150
+ "returns": "Promise<{ result: boolean; }>",
151
+ "tags": [
152
+ {
153
+ "name": "param",
154
+ "text": "vatRate KDV oran bilgisi."
155
+ }
156
+ ],
157
+ "docs": "Belirli bir KDV oranını ayarlar.",
158
+ "complexTypes": [
159
+ "VatRate"
160
+ ],
161
+ "slug": "setvatrate"
162
+ }
163
+ ],
164
+ "properties": []
165
+ },
166
+ "interfaces": [
167
+ {
168
+ "name": "ConnectOptions",
169
+ "slug": "connectoptions",
170
+ "docs": "Bağlantı ayarları.",
171
+ "tags": [],
172
+ "methods": [],
173
+ "properties": [
174
+ {
175
+ "name": "terminalNo",
176
+ "tags": [],
177
+ "docs": "Terminal numarası (seri numara).",
178
+ "complexTypes": [],
179
+ "type": "string"
180
+ },
181
+ {
182
+ "name": "ip",
183
+ "tags": [],
184
+ "docs": "Cihaz IP adresi.",
185
+ "complexTypes": [],
186
+ "type": "string"
187
+ },
188
+ {
189
+ "name": "port",
190
+ "tags": [],
191
+ "docs": "Cihaz port numarası.",
192
+ "complexTypes": [],
193
+ "type": "number"
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "name": "SaleItem",
199
+ "slug": "saleitem",
200
+ "docs": "Satış bilgisi.",
201
+ "tags": [],
202
+ "methods": [],
203
+ "properties": [
204
+ {
205
+ "name": "FiscalItems",
206
+ "tags": [],
207
+ "docs": "Satışta yer alan ürünler.",
208
+ "complexTypes": [
209
+ "FiscalItem"
210
+ ],
211
+ "type": "FiscalItem[]"
212
+ },
213
+ {
214
+ "name": "Adjustments",
215
+ "tags": [],
216
+ "docs": "Satışa uygulanan indirimler.",
217
+ "complexTypes": [
218
+ "Adj"
219
+ ],
220
+ "type": "Adj[]"
221
+ },
222
+ {
223
+ "name": "Payments",
224
+ "tags": [],
225
+ "docs": "Ödeme bilgileri.",
226
+ "complexTypes": [
227
+ "Payment"
228
+ ],
229
+ "type": "Payment[]"
230
+ },
231
+ {
232
+ "name": "FooterNotes",
233
+ "tags": [],
234
+ "docs": "Fiş altı notları.",
235
+ "complexTypes": [],
236
+ "type": "string[]"
237
+ },
238
+ {
239
+ "name": "EndOfReceiptInfo",
240
+ "tags": [],
241
+ "docs": "Fiş kapanış bilgisi.",
242
+ "complexTypes": [
243
+ "EndOfReceiptInfo"
244
+ ],
245
+ "type": "EndOfReceiptInfo"
246
+ }
247
+ ]
248
+ },
249
+ {
250
+ "name": "FiscalItem",
251
+ "slug": "fiscalitem",
252
+ "docs": "Satışta yer alan ürün bilgisi.",
253
+ "tags": [],
254
+ "methods": [],
255
+ "properties": [
256
+ {
257
+ "name": "Id",
258
+ "tags": [],
259
+ "docs": "Ürün ID.",
260
+ "complexTypes": [],
261
+ "type": "number"
262
+ },
263
+ {
264
+ "name": "Quantity",
265
+ "tags": [],
266
+ "docs": "Miktar.",
267
+ "complexTypes": [],
268
+ "type": "number"
269
+ },
270
+ {
271
+ "name": "Price",
272
+ "tags": [],
273
+ "docs": "Fiyat.",
274
+ "complexTypes": [],
275
+ "type": "number"
276
+ },
277
+ {
278
+ "name": "Name",
279
+ "tags": [],
280
+ "docs": "Ürün adı.",
281
+ "complexTypes": [],
282
+ "type": "string"
283
+ },
284
+ {
285
+ "name": "DeptId",
286
+ "tags": [],
287
+ "docs": "Departman ID.",
288
+ "complexTypes": [],
289
+ "type": "number"
290
+ },
291
+ {
292
+ "name": "Status",
293
+ "tags": [],
294
+ "docs": "Ürün durumu.",
295
+ "complexTypes": [],
296
+ "type": "number"
297
+ },
298
+ {
299
+ "name": "Adj",
300
+ "tags": [],
301
+ "docs": "Ürüne özel indirim.",
302
+ "complexTypes": [
303
+ "Adj"
304
+ ],
305
+ "type": "Adj | null"
306
+ },
307
+ {
308
+ "name": "NoteLine1",
309
+ "tags": [],
310
+ "docs": "Not satırı 1.",
311
+ "complexTypes": [],
312
+ "type": "string | null"
313
+ },
314
+ {
315
+ "name": "NoteLine2",
316
+ "tags": [],
317
+ "docs": "Not satırı 2.",
318
+ "complexTypes": [],
319
+ "type": "string | null"
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "name": "Adj",
325
+ "slug": "adj",
326
+ "docs": "İndirim bilgisi.",
327
+ "tags": [],
328
+ "methods": [],
329
+ "properties": [
330
+ {
331
+ "name": "Type",
332
+ "tags": [],
333
+ "docs": "İndirim tipi.",
334
+ "complexTypes": [],
335
+ "type": "number"
336
+ },
337
+ {
338
+ "name": "Amount",
339
+ "tags": [],
340
+ "docs": "İndirim tutarı.",
341
+ "complexTypes": [],
342
+ "type": "number"
343
+ },
344
+ {
345
+ "name": "percentage",
346
+ "tags": [],
347
+ "docs": "İndirim yüzdesi.",
348
+ "complexTypes": [],
349
+ "type": "number"
350
+ },
351
+ {
352
+ "name": "NoteLine1",
353
+ "tags": [],
354
+ "docs": "Not satırı 1.",
355
+ "complexTypes": [],
356
+ "type": "string | null"
357
+ },
358
+ {
359
+ "name": "NoteLine2",
360
+ "tags": [],
361
+ "docs": "Not satırı 2.",
362
+ "complexTypes": [],
363
+ "type": "string | null"
364
+ }
365
+ ]
366
+ },
367
+ {
368
+ "name": "Payment",
369
+ "slug": "payment",
370
+ "docs": "Ödeme bilgileri.",
371
+ "tags": [],
372
+ "methods": [],
373
+ "properties": [
374
+ {
375
+ "name": "Type",
376
+ "tags": [],
377
+ "docs": "Ödeme tipi (örn: nakit, kredi).",
378
+ "complexTypes": [],
379
+ "type": "number"
380
+ },
381
+ {
382
+ "name": "Index",
383
+ "tags": [],
384
+ "docs": "Ödeme indexi.",
385
+ "complexTypes": [],
386
+ "type": "number"
387
+ },
388
+ {
389
+ "name": "PaidTotal",
390
+ "tags": [],
391
+ "docs": "Ödenen toplam tutar.",
392
+ "complexTypes": [],
393
+ "type": "number"
394
+ },
395
+ {
396
+ "name": "viaByEFT",
397
+ "tags": [],
398
+ "docs": "EFT ile mi yapıldı?",
399
+ "complexTypes": [],
400
+ "type": "boolean"
401
+ },
402
+ {
403
+ "name": "SequenceNo",
404
+ "tags": [],
405
+ "docs": "Sıra numarası.",
406
+ "complexTypes": [],
407
+ "type": "number"
408
+ }
409
+ ]
410
+ },
411
+ {
412
+ "name": "EndOfReceiptInfo",
413
+ "slug": "endofreceiptinfo",
414
+ "docs": "Fiş kapanış bilgileri.",
415
+ "tags": [],
416
+ "methods": [],
417
+ "properties": [
418
+ {
419
+ "name": "CloseReceiptFlag",
420
+ "tags": [],
421
+ "docs": "Fişi kapat.",
422
+ "complexTypes": [],
423
+ "type": "boolean"
424
+ },
425
+ {
426
+ "name": "BarcodeFlag",
427
+ "tags": [],
428
+ "docs": "Barkod basılsın mı?",
429
+ "complexTypes": [],
430
+ "type": "boolean"
431
+ },
432
+ {
433
+ "name": "Barcode",
434
+ "tags": [],
435
+ "docs": "Barkod numarası.",
436
+ "complexTypes": [],
437
+ "type": "string | null"
438
+ }
439
+ ]
440
+ },
441
+ {
442
+ "name": "Department",
443
+ "slug": "department",
444
+ "docs": "Departman bilgisi.",
445
+ "tags": [],
446
+ "methods": [],
447
+ "properties": [
448
+ {
449
+ "name": "id",
450
+ "tags": [],
451
+ "docs": "Departman ID (1-8).",
452
+ "complexTypes": [],
453
+ "type": "1 | 2 | 8 | 7 | 6 | 5 | 4 | 3"
454
+ },
455
+ {
456
+ "name": "name",
457
+ "tags": [],
458
+ "docs": "Departman ismi.",
459
+ "complexTypes": [],
460
+ "type": "string"
461
+ },
462
+ {
463
+ "name": "vatId",
464
+ "tags": [],
465
+ "docs": "Departmana atanmış KDV ID (1-8).",
466
+ "complexTypes": [],
467
+ "type": "1 | 2 | 8 | 7 | 6 | 5 | 4 | 3"
468
+ },
469
+ {
470
+ "name": "price",
471
+ "tags": [],
472
+ "docs": "Fiyat (0 - 999.999,99).",
473
+ "complexTypes": [],
474
+ "type": "number"
475
+ },
476
+ {
477
+ "name": "weighable",
478
+ "tags": [],
479
+ "docs": "Tartılabilir mi? 0 = tartılamaz, 1 = tartılabilir.",
480
+ "complexTypes": [],
481
+ "type": "0 | 1"
482
+ },
483
+ {
484
+ "name": "limit",
485
+ "tags": [],
486
+ "docs": "Opsiyonel limit. (Eğer varsa)",
487
+ "complexTypes": [],
488
+ "type": "number | undefined"
489
+ }
490
+ ]
491
+ },
492
+ {
493
+ "name": "VatRate",
494
+ "slug": "vatrate",
495
+ "docs": "KDV oran bilgisi.",
496
+ "tags": [],
497
+ "methods": [],
498
+ "properties": [
499
+ {
500
+ "name": "index",
501
+ "tags": [],
502
+ "docs": "KDV index (0-7).",
503
+ "complexTypes": [],
504
+ "type": "0 | 1 | 2 | 7 | 6 | 5 | 4 | 3"
505
+ },
506
+ {
507
+ "name": "vatRate",
508
+ "tags": [],
509
+ "docs": "KDV oranı (%).",
510
+ "complexTypes": [],
511
+ "type": "number"
512
+ }
513
+ ]
514
+ }
515
+ ],
516
+ "enums": [],
517
+ "typeAliases": [],
518
+ "pluginConfigs": []
519
+ }
@@ -0,0 +1,182 @@
1
+ /**
2
+ * Ana plugin arayüzü. Hugin printer ile iletişim sağlayan tüm metodları tanımlar.
3
+ */
4
+ export interface CapacitorHuginGMP3Plugin {
5
+ /**
6
+ * Kütüphane sürümünü döner.
7
+ */
8
+ GetLibraryVersion(): Promise<{
9
+ version: string;
10
+ }>;
11
+ /**
12
+ * Cihaza bağlantı kurar.
13
+ * @param options Bağlantı bilgileri.
14
+ */
15
+ Connect(options: ConnectOptions): Promise<{
16
+ connected: boolean;
17
+ }>;
18
+ /**
19
+ * Satış işlemi başlatır.
20
+ * @param options Satış nesnesi (JSON string olarak).
21
+ */
22
+ Sale(options: {
23
+ saleItem: SaleItem;
24
+ }): Promise<{
25
+ orderNo?: number;
26
+ result: boolean;
27
+ message?: string;
28
+ }>;
29
+ /**
30
+ * X raporu yazdırır.
31
+ * @param type Rapor tipi (1 | 2 | 3).
32
+ */
33
+ PrintXReport(type: 1 | 2 | 3): Promise<{
34
+ result: boolean;
35
+ message: string;
36
+ }>;
37
+ /**
38
+ * Z raporu yazdırır.
39
+ */
40
+ PrintZReport(): Promise<{
41
+ result: boolean;
42
+ }>;
43
+ /**
44
+ * Kayıtlı KDV oranlarını getirir.
45
+ */
46
+ GetVatRates(): Promise<string[]>;
47
+ /**
48
+ * Tanımlı departmanları getirir.
49
+ */
50
+ GetDepartments(): Promise<Department[]>;
51
+ /**
52
+ * Departman ekler veya günceller.
53
+ * @param Department Departman bilgileri.
54
+ */
55
+ SetDepartment(Department: Department): Promise<{
56
+ result: boolean;
57
+ }>;
58
+ /**
59
+ * Belirli bir KDV oranını ayarlar.
60
+ * @param vatRate KDV oran bilgisi.
61
+ */
62
+ SetVatRate(vatRate: VatRate): Promise<{
63
+ result: boolean;
64
+ }>;
65
+ }
66
+ /**
67
+ * Bağlantı ayarları.
68
+ */
69
+ export interface ConnectOptions {
70
+ /** Terminal numarası (seri numara). */
71
+ terminalNo: string;
72
+ /** Cihaz IP adresi. */
73
+ ip: string;
74
+ /** Cihaz port numarası. */
75
+ port: number;
76
+ }
77
+ /**
78
+ * KDV oran bilgisi.
79
+ */
80
+ export interface VatRate {
81
+ /** KDV index (0-7). */
82
+ index: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
83
+ /** KDV oranı (%). */
84
+ vatRate: number;
85
+ }
86
+ /**
87
+ * Departman bilgisi.
88
+ */
89
+ export interface Department {
90
+ /** Departman ID (1-8). */
91
+ id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
92
+ /** Departman ismi. */
93
+ name: string;
94
+ /** Departmana atanmış KDV ID (1-8). */
95
+ vatId: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
96
+ /** Fiyat (0 - 999.999,99). */
97
+ price: number;
98
+ /** Tartılabilir mi? 0 = tartılamaz, 1 = tartılabilir. */
99
+ weighable: 0 | 1;
100
+ /** Opsiyonel limit. (Eğer varsa) */
101
+ limit?: number;
102
+ }
103
+ /**
104
+ * Satış bilgisi.
105
+ */
106
+ export interface SaleItem {
107
+ /** Satışta yer alan ürünler. */
108
+ FiscalItems: FiscalItem[];
109
+ /** Satışa uygulanan indirimler. */
110
+ Adjustments: Adj[];
111
+ /** Ödeme bilgileri. */
112
+ Payments: Payment[];
113
+ /** Fiş altı notları. */
114
+ FooterNotes: string[];
115
+ /** Fiş kapanış bilgisi. */
116
+ EndOfReceiptInfo: EndOfReceiptInfo;
117
+ }
118
+ /**
119
+ * Fiş kapanış bilgileri.
120
+ */
121
+ interface EndOfReceiptInfo {
122
+ /** Fişi kapat. */
123
+ CloseReceiptFlag: boolean;
124
+ /** Barkod basılsın mı? */
125
+ BarcodeFlag: boolean;
126
+ /** Barkod numarası. */
127
+ Barcode: string | null;
128
+ }
129
+ /**
130
+ * Ödeme bilgileri.
131
+ */
132
+ interface Payment {
133
+ /** Ödeme tipi (örn: nakit, kredi). */
134
+ Type: number;
135
+ /** Ödeme indexi. */
136
+ Index: number;
137
+ /** Ödenen toplam tutar. */
138
+ PaidTotal: number;
139
+ /** EFT ile mi yapıldı? */
140
+ viaByEFT: boolean;
141
+ /** Sıra numarası. */
142
+ SequenceNo: number;
143
+ }
144
+ /**
145
+ * Satışta yer alan ürün bilgisi.
146
+ */
147
+ interface FiscalItem {
148
+ /** Ürün ID. */
149
+ Id: number;
150
+ /** Miktar. */
151
+ Quantity: number;
152
+ /** Fiyat. */
153
+ Price: number;
154
+ /** Ürün adı. */
155
+ Name: string;
156
+ /** Departman ID. */
157
+ DeptId: number;
158
+ /** Ürün durumu. */
159
+ Status: number;
160
+ /** Ürüne özel indirim. */
161
+ Adj: Adj | null;
162
+ /** Not satırı 1. */
163
+ NoteLine1: string | null;
164
+ /** Not satırı 2. */
165
+ NoteLine2: string | null;
166
+ }
167
+ /**
168
+ * İndirim bilgisi.
169
+ */
170
+ interface Adj {
171
+ /** İndirim tipi. */
172
+ Type: number;
173
+ /** İndirim tutarı. */
174
+ Amount: number;
175
+ /** İndirim yüzdesi. */
176
+ percentage: number;
177
+ /** Not satırı 1. */
178
+ NoteLine1: string | null;
179
+ /** Not satırı 2. */
180
+ NoteLine2: string | null;
181
+ }
182
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=definitions.js.map